Skip to content

Commit 03c8f4c

Browse files
committed
Add Github Action
1 parent 1b584af commit 03c8f4c

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/tests.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Run tests
2+
3+
on: [ push, pull_request ]
4+
5+
jobs:
6+
test:
7+
8+
runs-on: ubuntu-latest
9+
10+
strategy:
11+
matrix:
12+
php: [ 7.3, 7.4 ]
13+
laravel: [ 8.*, 7.*, 6.*, 5.8.* ]
14+
stability: [ prefer-stable ]
15+
include:
16+
- laravel: 8.*
17+
php: 8.0
18+
stability: prefer-stable
19+
- laravel: 7.*
20+
php: 8.0
21+
stability: prefer-stable
22+
- laravel: 6.*
23+
php: 8.0
24+
stability: prefer-stable
25+
26+
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
27+
28+
steps:
29+
- name: Checkout code
30+
uses: actions/checkout@v2
31+
32+
- name: Setup PHP
33+
uses: shivammathur/setup-php@v2
34+
with:
35+
php-version: ${{ matrix.php }}
36+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, gd, redis, memcached
37+
tools: composer:v2
38+
coverage: none
39+
40+
- name: Install dependencies
41+
run: |
42+
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
43+
composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
44+
45+
- name: Execute tests
46+
run: vendor/bin/phpunit

0 commit comments

Comments
 (0)