Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Commit

Permalink
Update GitHub Actions for Laravel 11
Browse files Browse the repository at this point in the history
  • Loading branch information
laravel-shift committed Mar 2, 2024
1 parent 92bc3c3 commit 73a43d6
Showing 1 changed file with 31 additions and 20 deletions.
51 changes: 31 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: CI
on: [push, pull_request]

on:
- push
- pull_request

jobs:
run:
Expand All @@ -8,8 +11,8 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
php: [ 7.3, 7.4, '8.0', 8.1 ]
laravel: [ 7, 8, 9 , 10]
php: [7.3, 7.4, '8.0', 8.1, '8.2']
laravel: [7, 8, 9, 10, '11']
exclude:
- php: 7.3
laravel: 10
Expand All @@ -21,24 +24,32 @@ jobs:
laravel: 9
- php: 7.4
laravel: 9
- laravel: '11'
php: 7.3
- laravel: '11'
php: 7.4
- laravel: '11'
php: '8.0'
- laravel: '11'
php: 8.1

name: PHP ${{ matrix.php }} Test on ${{ matrix.os }} – Laravel ${{ matrix.laravel }}

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{matrix.php}}

- name: Install dependencies
uses: php-actions/composer@v5
with:
args: --prefer-source --no-interaction

- name: Run composer test script
uses: php-actions/composer@v5
with:
command: test
- name: Checkout
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{matrix.php}}

- name: Install dependencies
uses: php-actions/composer@v5
with:
args: --prefer-source --no-interaction

- name: Run composer test script
uses: php-actions/composer@v5
with:
command: test

0 comments on commit 73a43d6

Please sign in to comment.