Skip to content

Commit

Permalink
test multiple php and laravel versions
Browse files Browse the repository at this point in the history
  • Loading branch information
pataar authored Feb 10, 2024
1 parent 1280eec commit 3ddac7e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 60 deletions.
55 changes: 0 additions & 55 deletions .github/workflows/test-php8.2.yml

This file was deleted.

29 changes: 24 additions & 5 deletions .github/workflows/latest.yml → .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,39 @@
name: "Test on Latest Laravel"
name: "Test on S"

# Triggers the workflow on push or pull request events
on: [push, pull_request]
on:
push:
branches:
- stable
- develop
pull_request:
workflow_dispatch:

jobs:
test:
name: PHPUnit Tests
runs-on: ubuntu-latest

matrix-build:
name: PHPUnit Tests Matrix
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
php-version: [8.2, 8.3]
laravel-version:
[
"9.*", # Test Laravel 9
"10.*", # Test latest version
]
steps:
- uses: actions/checkout@v3

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

- name: Composer self update
run: composer self-update >/dev/null 2>&1
Expand All @@ -32,8 +51,8 @@ jobs:

- name: Lock laravel/framework version
env:
LARAVEL_VERSION: 10.5.0
run: composer require laravel/framework:10.5.0 --no-update
LARAVEL_VERSION: ${{ matrix.laravel-version }}
run: composer require laravel/framework:${{ matrix.laravel-version }} --no-update

- name: Vendor update
if: steps.composer-cache.outputs.cache-hit != 'true'
Expand Down

0 comments on commit 3ddac7e

Please sign in to comment.