Skip to content

Commit 83259aa

Browse files
committed
add test yml ...
1 parent 979f6dd commit 83259aa

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/test.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Test
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
php_version: [7.2]
15+
laravel_version: [5.5.*,6.*, 7.*]
16+
17+
steps:
18+
- name: Checkout commit
19+
uses: actions/checkout@v2
20+
21+
- name: Setup PHP
22+
uses: shivammathur/setup-php@v1
23+
with:
24+
php-version: ${{ matrix.php_version }}
25+
26+
- name: Validate composer.json
27+
run: composer validate
28+
29+
- name: Run composer install
30+
run: composer install --no-interaction --no-suggest
31+
32+
- name: Install Laravel
33+
run: composer update --no-interaction illuminate/database:^${{ matrix.laravel_version }}
34+
35+
- name: Run PHPUnit
36+
run: ./vendor/bin/phpunit

0 commit comments

Comments
 (0)