Skip to content
This repository was archived by the owner on Jul 31, 2025. It is now read-only.

Commit fafc521

Browse files
committed
Added GitHub actions to test compatibility
1 parent 2db6217 commit fafc521

File tree

2 files changed

+72
-0
lines changed

2 files changed

+72
-0
lines changed

.github/workflows/run-tests-l7.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: "Run Tests - Laravel 7"
2+
3+
on:
4+
push:
5+
branches: [ v2.x ]
6+
7+
pull_request:
8+
branches: [ v2.x ]
9+
10+
jobs:
11+
tests:
12+
13+
runs-on: ubuntu-latest
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
php: [7.3, 7.4, 8.0]
18+
laravel: [7.*]
19+
include:
20+
- laravel: 7.*
21+
testbench: 5.20
22+
23+
name: P${{ matrix.php }} - L${{ matrix.laravel }}
24+
25+
steps:
26+
- name: Checkout code
27+
uses: actions/checkout@v2
28+
29+
- name: Setup PHP
30+
uses: shivammathur/setup-php@v2
31+
with:
32+
php-version: ${{ matrix.php }}
33+
extensions: pdo, sqlite, pdo_sqlite
34+
35+
- name: Install Dependencies
36+
run: composer install

.github/workflows/run-tests-l8.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: "Run Tests - Laravel 8"
2+
3+
on:
4+
push:
5+
branches: [ v2.x ]
6+
7+
pull_request:
8+
branches: [ v2.x ]
9+
10+
jobs:
11+
tests:
12+
13+
runs-on: ubuntu-latest
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
php: [7.3, 7.4, 8.0]
18+
laravel: [8.*]
19+
include:
20+
- laravel: 8.*
21+
testbench: 6.23
22+
23+
name: P${{ matrix.php }} - L${{ matrix.laravel }}
24+
25+
steps:
26+
- name: Checkout code
27+
uses: actions/checkout@v2
28+
29+
- name: Setup PHP
30+
uses: shivammathur/setup-php@v2
31+
with:
32+
php-version: ${{ matrix.php }}
33+
extensions: pdo, sqlite, pdo_sqlite
34+
35+
- name: Install Dependencies
36+
run: composer install

0 commit comments

Comments
 (0)