Skip to content

Commit 82a9d0f

Browse files
author
Jakub Gawron
committed
Setup the pipeline to check multiple versions of PHP and Laravel.
1 parent 09794a1 commit 82a9d0f

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/tests.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,31 @@ jobs:
77
# not self-hosted, because it's a public repo
88
runs-on: ubuntu-latest
99

10+
# we want to run it on combination of Laravel 8+ and PHP 8+
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
php: ['8.0', '8.1']
15+
laravel: [8, 9]
16+
1017
steps:
1118
- name: Checkout the repo
1219
uses: actions/checkout@v2
1320

1421
- name: Setup PHP
1522
uses: shivammathur/setup-php@v2
1623
with:
17-
php-version: '7.4'
24+
php-version: ${{ matrix.php }}
1825
extensions: zip, gd, sqlite, json, gmp, bcmath
1926
coverage: none
2027

21-
- name: Install Dependencies
28+
- name: Install dependencies
2229
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
2330

31+
- name: Ensure we use specific version of Laravel
32+
env:
33+
LARAVEL_VERSION: ${{ matrix.laravel }}
34+
run: composer require laravel/framework $LARAVEL_VERSION -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
35+
2436
- name: Execute tests
2537
run: vendor/bin/phpunit

0 commit comments

Comments
 (0)