Skip to content

Commit e606355

Browse files
committed
feat: Setup to test Composer with workflow
1 parent 32e6ff1 commit e606355

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/setup_test.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Setup & test
2+
3+
on: [ push, pull_request ]
4+
5+
jobs:
6+
tests:
7+
name: Composer P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.os }}
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
matrix:
11+
os: [ ubuntu-latest ]
12+
php: [ '8.1', '8.2', '8.3' ]
13+
laravel: [ 11.*, 10.*, 9.* ]
14+
include:
15+
- laravel: 11.*
16+
testbench: 9.*
17+
- laravel: 10.*
18+
testbench: 8.*
19+
- laravel: 9.*
20+
testbench: 8.*
21+
exclude:
22+
- laravel: 11.*
23+
php: 8.1
24+
steps:
25+
- name: Setup PHP
26+
uses: shivammathur/setup-php@v2
27+
with:
28+
php-version: ${{ matrix.php }}
29+
30+
- name: Checkout code
31+
uses: actions/checkout@v4
32+
33+
- name: Install dependencies
34+
run: |
35+
composer install --no-interaction --no-progress --no-suggest
36+
37+
- name: Run tests
38+
run: |
39+
composer validate --strict

0 commit comments

Comments
 (0)