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