From a9fb27a3cd4626ebb7779d4e23c99214522a3f49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?BlueM=C3=B6hre?= Date: Tue, 15 Oct 2024 15:28:26 +0200 Subject: [PATCH] Setup Github Actions for CI --- .github/workflows/php.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/php.yml diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml new file mode 100644 index 0000000..b43deec --- /dev/null +++ b/.github/workflows/php.yml @@ -0,0 +1,29 @@ +name: CI + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +permissions: + contents: read + +jobs: + test: + strategy: + matrix: + os: [ubuntu-latest] + php: ['latest', '8.1', '7.4'] + + runs-on: ${{ matrix.os }} + name: Test on ${{ matrix.os }}, PHP ${{ matrix.php }} + + steps: + - uses: actions/checkout@v4 + - uses: php-actions/composer@v6 + + - name: PHPUnit tests + uses: php-actions/phpunit@v4 + with: + php_version: ${{ matrix.php }}