From cc59861cddf8fa209abe6e5148ebc5511eadd65e Mon Sep 17 00:00:00 2001 From: Jan Brecka Date: Mon, 20 Nov 2023 09:43:52 +0100 Subject: [PATCH] run php on github CI --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..e66bfd5 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 }}