From eeadc319274a38e9284b90a67f2cf2f204fd9420 Mon Sep 17 00:00:00 2001 From: Mark Date: Tue, 15 Oct 2024 13:59:05 +0000 Subject: [PATCH] Run tests on PR --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 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..dc68426 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,24 @@ +name: CI + +on: + push: + pull_request: + types: + - opened + - synchronize + +jobs: + build-test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Cache Composer dependencies + uses: actions/cache@v3 + with: + path: /tmp/composer-cache + key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }} + - uses: php-actions/composer@v6 + - name: PHPUnit tests + run: ./vendor/bin/phpunit +