Skip to content

Commit

Permalink
Update a workflow file for GitHub Actions to test on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
matsuo committed Jul 26, 2024
1 parent d6153d4 commit 5618125
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
matrix:
os:
- ubuntu-latest
- windows-latest

php-version:
- "7.2"
Expand Down Expand Up @@ -52,7 +53,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Override PHP ini values for JIT compiler
if: matrix.compiler == 'jit'
Expand All @@ -68,18 +69,26 @@ jobs:

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: vendor
key: v5r2-${{ runner.os }}-php-${{ matrix.php-version }}-${{ hashFiles('**/composer.lock') }}
restore-keys: |
v5r1-${{ runner.os }}-php-${{ matrix.php-version }}-
- name: Install dependencies
uses: php-actions/composer@v6
run: composer install

- name: Run make
run: make -B

- name: Run tests with phpunit
- if: runner.os == 'Linux'
name: Run tests with phpunit
run: php ./vendor/phpunit/phpunit/phpunit

- if: runner.os == 'Windows'
name: Run tests with phpunit on Windows
continue-on-error: true
run: |
php ./vendor/phpunit/phpunit/phpunit
exit 0

0 comments on commit 5618125

Please sign in to comment.