Skip to content

Commit

Permalink
run php on github CI
Browse files Browse the repository at this point in the history
  • Loading branch information
honzabrecka committed Nov 20, 2023
1 parent e37a7b0 commit cc59861
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: CI

on: [push, pull_request]

env:
php-options: -C -d opcache.enable=0 -d zend.exception_ignore_args=0

jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
php: ['8.0', '8.1', '8.2', '8.3']
sapi: ['php', 'php-cgi']

fail-fast: false

name: PHP ${{ matrix.php }}/${{ matrix.sapi }} tests on ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none

- run: composer install --no-progress --prefer-dist
- run: vendor/bin/tester -C test/test.php -p ${{ matrix.sapi }} -s ${{ env.php-options }}

0 comments on commit cc59861

Please sign in to comment.