Skip to content

Commit 07ad91e

Browse files
committed
ci(tests): simplify workflow and remove prefer-lowest from matrix
1 parent 0145aa0 commit 07ad91e

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

.github/workflows/test-runner.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,30 +19,28 @@ permissions:
1919
jobs:
2020
test:
2121

22-
runs-on: ${{ matrix.os }}
22+
runs-on: ubuntu-latest
2323

2424
# Define the matrix of different PHP, Laravel, and testbench versions
2525
strategy:
2626
# Fail the whole workflow if one of the jobs fails
2727
fail-fast: true
2828
matrix:
29-
os: [ ubuntu-latest ]
3029
php: [ 8.2, 8.3, 8.4 ]
31-
laravel: [12.*, 11.*]
32-
dependency-version: [ prefer-lowest, prefer-stable ]
30+
laravel: [ 11.*, 12.* ]
31+
dependency-version: [ prefer-stable ]
3332
include:
3433
# Laravel 12 uses Orchestra Testbench 10
3534
- laravel: 12.*
3635
testbench: 10.*
37-
# Laravel 11 uses Orchestra Testbench 9
36+
# Laravel 11 uses Orchestra Testbench 9
3837
- laravel: 11.*
3938
testbench: 9.*
40-
name: ${{ matrix.os }} / PHP ${{ matrix.php }} / L${{ matrix.laravel }} / ${{ matrix.dependency-version }}
39+
name: PHP ${{ matrix.php }} / L${{ matrix.laravel }} / ${{ matrix.dependency-version }}
4140

4241
steps:
4342

4443
#- name: Configure operating system
45-
# if: matrix.os == 'ubuntu-latest'
4644
# run: sudo apt-get update && sudo apt-get install -y locales locales-all
4745

4846
- name: Checkout code
@@ -58,7 +56,7 @@ jobs:
5856
uses: actions/cache@v3
5957
with:
6058
path: vendor
61-
key: ${{ runner.os }}-php-${{ matrix.php }}-laravel-${{ matrix.laravel }}-${{ matrix.dependency-version }}-${{ hashFiles('**/composer.lock') }}
59+
key: php-${{ matrix.php }}-laravel-${{ matrix.laravel }}-${{ matrix.dependency-version }}-${{ hashFiles('**/composer.lock') }}
6260

6361
- name: Setup PHP
6462
uses: shivammathur/setup-php@v2
@@ -77,7 +75,7 @@ jobs:
7775

7876
- name: Upload coverage reports to Codecov
7977
# Make sure the Codecov action is only executed once
80-
if: matrix.os == 'ubuntu-latest' && matrix.php == '8.2' && matrix.laravel == '12.*' && matrix.dependency-version == 'prefer-stable'
78+
if: matrix.php == '8.2' && matrix.laravel == '12.*' && matrix.dependency-version == 'prefer-stable'
8179
uses: codecov/codecov-action@v5
8280
with:
8381
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)