Skip to content

Commit b110f15

Browse files
committed
add github actions
1 parent 706b737 commit b110f15

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@ trim_trailing_whitespace = true
1313

1414
[*.md]
1515
trim_trailing_whitespace = false
16+
17+
[*.yml]
18+
indent_size = 2

.github/workflows/test.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Unit Test
2+
on: [ push ]
3+
jobs:
4+
run:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
matrix:
8+
php-version: ['7.2', '7.3', '7.4', '8.0', '8.1']
9+
laravel-version: ['^6', '^7', '^8', '^9']
10+
exclude:
11+
- php-version: 7.2
12+
laravel-version: ^8
13+
- php-version: 7.2
14+
laravel-version: ^9
15+
- php-version: 7.3
16+
laravel-version: ^9
17+
- php-version: 7.4
18+
laravel-version: ^9
19+
- php-version: 8.0
20+
laravel-version: ^6
21+
- php-version: 8.0
22+
laravel-version: ^7
23+
- php-version: 8.1
24+
laravel-version: ^6
25+
- php-version: 8.1
26+
laravel-version: ^7
27+
steps:
28+
- name: Setup PHP
29+
uses: shivammathur/setup-php@v2
30+
with:
31+
php-version: ${{ matrix.php-version }}
32+
- uses: actions/checkout@v2
33+
- name: Install dependencies
34+
run: composer install --no-interaction --prefer-dist --no-progress
35+
- name: Install laravel
36+
run: composer require illuminate/contracts:${{ matrix.laravel-version }} --no-interaction --prefer-dist --no-progress
37+
- name: Run unit tests
38+
run: vendor/bin/phpunit
39+

0 commit comments

Comments
 (0)