This commit is contained in:
Shish 2024-01-15 21:40:10 +00:00
parent a3dd12895e
commit b9d98b6861

View file

@ -111,33 +111,26 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Set Up Cache
uses: actions/cache@v3
with:
path: |
vendor
key: vendor-${{ matrix.php }}-${{ hashFiles('composer.lock') }}
- name: Set up PHP
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php }}
coverage: pcov
extensions: mbstring
- name: Set up database
run: ./tests/setup-db.sh "${{ matrix.database }}"
- name: Check versions
run: php -v && composer -V
- name: Validate composer.json and composer.lock
run: composer validate
- name: Install PHP dependencies
run: composer install --no-progress
- name: Run test suite
run: |
if [[ "${{ matrix.php }}" == "8.3" ]]; then
@ -145,7 +138,6 @@ jobs:
else
vendor/bin/phpunit --configuration tests/phpunit.xml
fi
- name: Upload coverage
if: matrix.php == '8.3'
run: |