From 7ec6ed6899955e9c920634606b4cd72eb77c3f34 Mon Sep 17 00:00:00 2001 From: Kyle Milloy Date: Sun, 21 Apr 2024 10:29:22 -0600 Subject: [PATCH] chore: add actions --- .github/workflows/tests.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..f81b7e3 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,29 @@ +name: Test +on: + pull_request: + branches: + - master +jobs: + phpunit: + name: PHPUnit + timeout-minutes: 10 + runs-on: ${{ matrix.operating-system }} + strategy: + matrix: + operating-system: [ubuntu-latest] + php-versions: ['8.1', '8.2', '8.3'] + steps: + - name: ๐Ÿ›Ž Checkout + uses: actions/checkout@v4 + + - name: ๐Ÿ— Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-versions }} + coverage: xdebug + + - name: ๐Ÿ”จ Install composer dependencies + run: composer install --no-progress --prefer-dist --optimize-autoloader + + - name: ๐Ÿงช Run tests + run: ./vendor/bin/phpunit