From 855e0eda22ce54835ce7e25f08d751555c60f689 Mon Sep 17 00:00:00 2001 From: BafS Date: Fri, 27 Oct 2023 18:06:35 +0200 Subject: [PATCH] Add github action --- .github/workflows/php.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 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..6bf96fd --- /dev/null +++ b/.github/workflows/php.yml @@ -0,0 +1,32 @@ +name: PHP Unit/Quality CI + +on: + push: + branches: [ master, main ] + pull_request: + branches: [ master, main ] + +jobs: + ci: + runs-on: ubuntu-latest + strategy: + matrix: + php: ['7.4', '8.0', '8.1', '8.2'] + dependency-version: [prefer-lowest, prefer-stable] + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + tools: composer:v2 + coverage: none + + - name: Install Dependencies + run: composer update --${{ matrix.dependency-version }} --no-interaction --no-progress --ansi + + - name: PHP Unit + run: ./vendor/bin/phpunit --testdox