Skip to content

Commit

Permalink
Update GitHub Actions for Laravel 10
Browse files Browse the repository at this point in the history
  • Loading branch information
saade committed Feb 17, 2023
1 parent 0056c0d commit 8f4ceee
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Tests

on:
push:
branches:
- main
pull_request:
schedule:
- cron: '0 0 * * *'

jobs:
tests:
Expand All @@ -13,14 +13,17 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [7.4, 8.0]
laravel: [^8.0]
php: ['8.0', 8.1, 8.2]
laravel: [9, 10]
exclude:
- php: '8.0'
laravel: 10

name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -31,8 +34,7 @@ jobs:

- name: Install dependencies
run: |
composer require "illuminate/contracts=${{ matrix.laravel }}" --prefer-dist --no-interaction --no-update
composer require "illuminate/contracts=^${{ matrix.laravel }}" --prefer-dist --no-interaction --no-update
composer update --prefer-dist --no-interaction --no-progress
- name: Execute tests
run: vendor/bin/phpunit --verbose
run: vendor/bin/phpunit --verbose

0 comments on commit 8f4ceee

Please sign in to comment.