Skip to content
This repository was archived by the owner on Feb 18, 2023. It is now read-only.

Commit c9b0e3a

Browse files
author
joselfonseca
committed
add github actions check
1 parent 0df7ddd commit c9b0e3a

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/run-tests.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: "Run Tests - Current"
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
fail-fast: true
10+
matrix:
11+
php: [8.0, 7.4]
12+
13+
name: P${{ matrix.php }}
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v2
18+
19+
- name: Cache dependencies
20+
uses: actions/cache@v2
21+
with:
22+
path: ~/.composer/cache/files
23+
key: dependencies-laravel-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
24+
25+
- name: Setup PHP
26+
uses: shivammathur/setup-php@v2
27+
with:
28+
php-version: ${{ matrix.php }}
29+
extensions: curl, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, iconv
30+
coverage: none
31+
32+
- name: Install dependencies
33+
run: |
34+
composer install
35+
php -r "copy('.env.example', '.env');"
36+
php artisan key:generate
37+
php artisan passport:keys
38+
- name: Execute tests
39+
run: vendor/bin/phpunit

0 commit comments

Comments
 (0)