Skip to content

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 e7c6886 commit 3743f91
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,49 @@
name: Tests

on: [ push, pull_request ]
on:
- push
- pull_request

jobs:
tests:

runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
php: [ 8.2, 8.1 ]
laravel: [ 10.* ]
php: [8.2, 8.1]
laravel: ['10.*', '11.*']
include:
- laravel: 10.*
testbench: 8.*
phpunit: 10.*
- laravel: 11.*
testbench: 9.*
phpunit: '8.2'
exclude:
- laravel: 11.*
php: 8.1

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

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: curl, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, iconv, gd
coverage: pcov

- name: Install dependencies
run: |
composer validate
composer self-update
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "phpunit/phpunit:${{ matrix.phpunit }}" --no-interaction --no-update
composer install --prefer-dist --no-interaction --no-suggest

- name: Execute tests
run: vendor/bin/phpunit
env:
Expand All @@ -48,6 +58,7 @@ jobs:
CLOUDINARY_SECURE: ${{ secrets.CLOUDINARY_SECURE }}
FILESYSTEM_CLOUD: ${{ secrets.FILESYSTEM_CLOUD }}
FILESYSTEM_DISK: ${{ secrets.FILESYSTEM_DISK }}

- name: Upload coverage
uses: codecov/codecov-action@v2
with:
Expand Down

0 comments on commit 3743f91

Please sign in to comment.