fix the paths #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
push: | |
branches: | |
- '**' | |
jobs: | |
php8-compatibility: | |
name: PHP 8.x Compatibility | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: PHP Compatibility | |
uses: pantheon-systems/phpcompatibility-action@dev | |
with: | |
test-versions: 8.0- | |
paths: ${{ github.workspace }}/*.php ${{ github.workspace }}/inc/*.php ${{ github.workspace }}/inc/network/*.php | |
test: | |
needs: php8-compatibility | |
name: Test | |
runs-on: ubuntu-latest | |
services: | |
mariadb: | |
image: mariadb:10.6 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup PHP 8.3 | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.3 | |
extensions: mysqli, zip, imagick | |
- name: Start MySQL | |
run: sudo systemctl start mysql | |
- name: Cache dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ~/vendor | |
key: test-phpunit-dependencies-${{ hashFiles('composer.json') }} | |
restore-keys: test-phpunit-dependencies-${{ hashFiles('composer.json') }} | |
- name: Install Composer dependencies | |
run: composer install | |
- name: Run PHPUnit | |
run: bash ./bin/phpunit-test.sh | |