PHP CI #242
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: PHP CI | |
on: | |
push: | |
paths: | |
- 'php/**' | |
- '.github/workflows/php**' | |
pull_request: | |
paths: | |
- 'php/**' | |
- '.github/workflows/php**' | |
schedule: | |
# weekly build every FRI | |
- cron: "0 6 * * 5" | |
jobs: | |
run: | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
matrix: | |
operating-system: [ ubuntu-latest, windows-latest, macOS-latest ] | |
php-versions: [ '8.1', '8.2' ] | |
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
tools: phpunit #optional, setup tools globally | |
- name: Install Dependencies | |
working-directory: php | |
run: composer install --prefer-dist | |
- name: Run phpunit | |
working-directory: php | |
run: phpunit --bootstrap vendor/autoload.php tests --filter testNotFailing |