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 1, 2024
1 parent 2a24a12 commit 8b214b0
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,37 @@
name: tests

on: [push]
on:
- push

jobs:
build:
runs-on: ubuntu-latest

timeout-minutes: 10

strategy:
matrix:
php: ['8.2', '8.3']
laravel: ['10.38', '10.46']
laravel: ['10.38', '10.46', '11.0']

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

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

- name: Installing PHP
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php }}
extensions: mbstring, json, sqlite3
tools: composer:v2

- name: Lock Laravel Version
run: composer require "illuminate/support:${{ matrix.laravel }}.*" --no-update -v && composer require "illuminate/console:${{ matrix.laravel }}.*" --no-update -v

- name: Composer Install
run: composer install --prefer-dist --no-progress --no-interaction

- name: Run Tests
run: php vendor/bin/phpunit --testdox

0 comments on commit 8b214b0

Please sign in to comment.