Skip to content

Multipass export fix #1437

Multipass export fix

Multipass export fix #1437

name: Judge unit tests
on:
merge_group:
pull_request:
branches:
- main
- '[0-9]+.[0-9]+'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
judge-unit-tests:
runs-on: ubuntu-latest
container:
image: domjudge/gitlabci:24.04
strategy:
matrix:
php-version: ['8.2', '8.5']
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
- name: Cache composer dependencies
uses: actions/cache@v4
with:
path: webapp/vendor
key: composer-${{ hashFiles('webapp/composer.lock') }}
restore-keys: |
composer-
- name: Install composer dependencies
working-directory: webapp
run: composer install --no-scripts --ignore-platform-reqs
- name: Run judge unit tests
working-directory: judge/tests
run: ../../webapp/vendor/bin/phpunit --configuration phpunit.xml --testdox