From 5fb07f827cc48f9bc34c02963e2cb869505eca48 Mon Sep 17 00:00:00 2001 From: haszi Date: Fri, 16 Feb 2024 16:21:41 +0100 Subject: [PATCH] Run tests on push and pull requests --- .github/workflows/test.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..c5636ec3 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,23 @@ +name: Test +on: [push, pull_request] +jobs: + test: + name: test + strategy: + matrix: + version: ['8.0', '8.1', '8.2', '8.3'] + runs-on: ubuntu-latest + steps: + - name: Checkout PhD + uses: actions/checkout@v2 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{matrix.version}} + + - name: Get run-test.php + run: wget https://raw.githubusercontent.com/php/php-src/master/run-tests.php + + - name: Run tests + run: php run-tests.php -P -q --no-progress --offline --show-diff --show-slow 1000 --set-timeout 120 -g FAIL,BORK,LEAK,XLEAK tests/