From 9423d7311dec7a94db7c6e038f743f58ca1934d3 Mon Sep 17 00:00:00 2001 From: Pedro Cunha Date: Sun, 17 Mar 2024 00:57:21 +0000 Subject: [PATCH] ci: switch to github actions --- .github/workflows/tests.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 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 00000000..7a009c49 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,25 @@ +name: Tests + +on: + push: + branches: [ "dev", "master" ] + pull_request: + branches: [ "dev" ] + +jobs: + tests: + runs-on: ubuntu-latest + steps: + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '8.2' + - uses: actions/checkout@v3 + - name: Copy testing .env + run: cp .env.testing .env + - name: Install dependencies + run: composer install --no-interaction + - name: Generate key + run: php artisan key:generate + - name: Run tests + run: php artisan test