From dac82cdceed3b0fc13306ea1f987a9e4f99f5819 Mon Sep 17 00:00:00 2001 From: tcampbPPU Date: Fri, 11 Nov 2022 21:04:10 -0500 Subject: [PATCH] add testing workflow --- .github/workflows/test.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 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 0000000..85bf1fa --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,36 @@ +name: PHPUnit Tests + +on: + push: + pull_request: + schedule: + - cron: "0 0 * * 0" # Once a Week on first day of week at 00:00 + +jobs: + tests: + runs-on: ubuntu-20.04 + + strategy: + fail-fast: true + matrix: + php: [8.1] + laravel: [9] + + name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} + + steps: + - name: ๐Ÿ”จ Checkout code + uses: actions/checkout@v2 + + - name: ๐Ÿ”จ Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + coverage: none + tools: composer:v2 + + - name: ๐Ÿ”จ Install dependencies + run: composer update --prefer-dist --no-interaction --no-progress + + - name: ๐Ÿงช Run Execute PHPUnit Tests + run: composer test