Skip to content

Commit

Permalink
Use REL1_43 in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Universal-Omega authored Feb 9, 2025
1 parent 279ce80 commit 07415a0
Showing 1 changed file with 38 additions and 78 deletions.
116 changes: 38 additions & 78 deletions .github/workflows/mediawiki-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ jobs:
strategy:
matrix:
include:
# Latest stable MediaWiki - PHP 7.4 (phan)
- mw: 'REL1_39'
php: 7.4
php-docker: 74
# Latest stable MediaWiki - PHP 8.1 (phan)
- mw: 'REL1_43'
php: 8.1
php-docker: 81
experimental: false
stage: phan

# Latest MediaWiki master - PHP 7.4 (phan)
# Latest MediaWiki master - PHP 8.1 (phan)
- mw: 'master'
php: 7.4
php-docker: 74
php: 8.1
php-docker: 81
experimental: true
stage: phan

Expand All @@ -34,80 +34,38 @@ jobs:
experimental: false
stage: coverage

# Latest stable MediaWiki - PHP 7.4 (phpunit-unit)
- mw: 'REL1_39'
php: 7.4
php-docker: 74
experimental: false
stage: phpunit-unit

# Latest MediaWiki master - PHP 7.4 (phpunit-unit)
- mw: 'master'
php: 7.4
php-docker: 74
experimental: false
stage: phpunit-unit

# Latest stable MediaWiki - PHP 7.4 (phpunit)
- mw: 'REL1_39'
php: 7.4
php-docker: 74
# Latest stable MediaWiki - PHP 8.1 (phpunit)
- mw: 'REL1_43'
php: 8.1
php-docker: 81
experimental: false
stage: phpunit

# Latest MediaWiki master - PHP 7.4 (phpunit)
- mw: 'master'
php: 7.4
php-docker: 74
experimental: true
stage: phpunit

# Latest MediaWiki master - PHP 8.1 (phpunit)
- mw: 'master'
php: 8.1
php-docker: 81
experimental: false
experimental: true
stage: phpunit

# Latest stable MediaWiki - PHP 7.4 (selenium)
- mw: 'REL1_39'
php: 7.4
php-docker: 74
experimental: false
stage: selenium

# Latest MediaWiki master - PHP 7.4 (selenium)
# Latest MediaWiki master - PHP 8.1 (selenium)
- mw: 'master'
php: 7.4
php-docker: 74
experimental: false
php: 8.1
php-docker: 81
experimental: true
stage: selenium

# Latest stable MediaWiki - PHP 7.4 (qunit)
- mw: 'REL1_39'
php: 7.4
php-docker: 74
experimental: false
stage: qunit

# Latest MediaWiki master - PHP 7.4 (qunit)
# Latest MediaWiki master - PHP 8.1 (qunit)
- mw: 'master'
php: 7.4
php-docker: 74
experimental: false
php: 8.1
php-docker: 81
experimental: true
stage: qunit

# Latest stable MediaWiki - PHP 7.4 (npm-test)
- mw: 'REL1_39'
php: 7.4
php-docker: 74
experimental: false
stage: npm-test

# Latest stable MediaWiki - PHP 7.4 (composer-test)
- mw: 'REL1_39'
php: 7.4
php-docker: 74
# Latest stable MediaWiki - PHP 8.1 (composer-test)
- mw: 'REL1_43'
php: 8.1
php-docker: 81
experimental: false
stage: composer-test

Expand All @@ -119,14 +77,15 @@ jobs:
QUIBBLE_DOCKER_IMAGE: quibble-buster-php${{ matrix.php-docker }}
COVERAGE_DOCKER_IMAGE: quibble-buster-php${{ matrix.php-docker }}-coverage
PHAN_DOCKER_IMAGE: mediawiki-phan-php${{ matrix.php-docker }}
MEDIAWIKI_VERSION: ${{ matrix.mw }}

steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.11.0
uses: styfle/cancel-workflow-action@0.12.1
with:
access_token: ${{ github.token }}

- uses: actions/checkout@v3
- uses: actions/checkout@v4

# /home/runner/cache/ Cache
# /home/runner/src/ Mediawiki installation
Expand All @@ -136,8 +95,6 @@ jobs:
# $GITHUB_WORKSPACE/.github/workflows/globals.php Add global configuration options for MediaWiki
- name: Set up
run: |
echo MEDIAWIKI_VERSION="${{ matrix.mw }}" >> $GITHUB_ENV
if [ "${{ matrix.stage }}" == 'phan' ]; then
export DOCKER_IMAGE="${PHAN_DOCKER_IMAGE}"
elif [ "${{ matrix.stage }}" == coverage ]; then
Expand All @@ -161,13 +118,17 @@ jobs:
# Resolve dependencies
if [ -e .github/workflows/dependencies ]; then
cd .github/workflows
curl -sL https://raw.githubusercontent.com/wikimedia/integration-config/master/zuul/dependencies.yaml -o dependencies.yaml
curl -sL https://raw.githubusercontent.com/wikimedia/integration-config/master/zuul/phan_dependencies.yaml -o phan_dependencies.yaml
curl -sL https://raw.githubusercontent.com/wikimedia/integration-config/master/zuul/parameter_functions.py -o pf.py
curl -sL https://raw.githubusercontent.com/WikiForge/ci-scripts/master/mediawiki/resolve_dependencies.py -o rd.py
echo "DEPENDENCIES=$(python3 rd.py)" >> $GITHUB_ENV
curl -sL https://raw.githubusercontent.com/miraheze/ci-scripts/master/mediawiki/resolve_dependencies.py -o rd.py
if [ -e dependencies ]; then
echo "DEPENDENCIES=$(python3 rd.py dependencies)" >> $GITHUB_ENV
fi
fi
- name: Cache docker image
uses: actions/cache@v3.3.1
uses: actions/cache@v4
with:
path: /home/runner/docker-images/${{ env.DOCKER_IMAGE }}
key: ${{ env.DOCKER_IMAGE }}:${{ env.DOCKER_LATEST_TAG }}
Expand All @@ -179,7 +140,7 @@ jobs:
- name: Cache quibble docker image
if: ${{ matrix.stage == 'coverage' || matrix.stage == 'phan' }}
uses: actions/cache@v3.3.1
uses: actions/cache@v4
with:
path: /home/runner/docker-images/${{ env.QUIBBLE_DOCKER_IMAGE }}
key: ${{ env.QUIBBLE_DOCKER_IMAGE }}:${{ env.QUIBBLE_DOCKER_LATEST_TAG }}
Expand All @@ -195,7 +156,6 @@ jobs:
if [ ! -d src ]; then
git clone -b "${MEDIAWIKI_VERSION}" --depth 1 https://gerrit.wikimedia.org/r/mediawiki/core src
git clone --recurse-submodules -b "${MEDIAWIKI_VERSION}" --depth 1 https://gerrit.wikimedia.org/r/mediawiki/skins/Vector src/skins/Vector
git clone --recurse-submodules -b "${MEDIAWIKI_VERSION}" --depth 1 https://github.com/wikimedia/mediawiki-extensions-PageImages src/extensions/PageImages
for dep in $DEPENDENCIES; do
dependency=$(echo $dep | cut -d'|' -f1)
repository=$(echo $dep | cut -sd'|' -f2)
Expand All @@ -216,10 +176,10 @@ jobs:
git -C src/ log -n 1 --format="%H"
- name: Cache dependencies (composer and npm)
uses: actions/cache@v3.3.1
uses: actions/cache@v4
with:
path: /home/runner/cache
key: ${{ runner.os }}-${{ env.MEDIAWIKI_VERSION }}-${{ hashFiles('**/*.lock') }}
key: ${{ runner.os }}-${{ env.MEDIAWIKI_VERSION }}-${{ hashFiles('**/*.json') }}

- name: Setup PHP Action
if: ${{ matrix.stage == 'phan' }}
Expand Down Expand Up @@ -315,7 +275,7 @@ jobs:
- name: Upload coverage to Codecov
if: ${{ matrix.stage == 'coverage' }}
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v5
with:
directory: /home/runner/cover

Expand Down

0 comments on commit 07415a0

Please sign in to comment.