Skip to content

Commit 2ed0bb5

Browse files
committed
Workflow
1 parent 387dfbd commit 2ed0bb5

File tree

1 file changed

+71
-0
lines changed

1 file changed

+71
-0
lines changed

.github/workflows/tests.yml

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: run-tests
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- dev
8+
pull_request:
9+
branches:
10+
- master
11+
12+
jobs:
13+
php-tests:
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
php: ['8.4', '8.3', '8.2', '8.1', '8.0']
20+
laravel: ['8.*', '9.*', '10.*', '11.*', '12.*']
21+
dependency-version: [prefer-stable]
22+
exclude:
23+
- php: 8.0
24+
laravel: 10.*
25+
- php: 8.0
26+
laravel: 11.*
27+
- php: 8.0
28+
laravel: 12.*
29+
- php: 8.1
30+
laravel: 11.*
31+
- php: 8.1
32+
laravel: 12.*
33+
- php: 8.2
34+
laravel: 8.*
35+
- php: 8.3
36+
laravel: 8.*
37+
- php: 8.4
38+
laravel: 8.*
39+
include:
40+
- laravel: 8.*
41+
testbench: 6.23
42+
- laravel: 9.*
43+
testbench: 7.*
44+
- laravel: 10.*
45+
testbench: 8.*
46+
- laravel: 11.*
47+
testbench: 9.*
48+
- laravel: 12.*
49+
testbench: 10.*
50+
51+
52+
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ubuntu-latest
53+
54+
steps:
55+
- name: Checkout code
56+
uses: actions/checkout@v4
57+
58+
- name: Setup PHP
59+
uses: shivammathur/setup-php@v2
60+
with:
61+
php-version: ${{ matrix.php }}
62+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
63+
coverage: none
64+
65+
- name: Install dependencies
66+
run: |
67+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
68+
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
69+
70+
- name: Execute tests
71+
run: vendor/bin/phpunit

0 commit comments

Comments
 (0)