Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: merge tests to test multiple PHP and Laravel versions #215

Closed
wants to merge 12 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test multiple php and laravel versions
  • Loading branch information
pataar authored Feb 10, 2024
commit 3ddac7eedb0798d735632378439391388554d7e9
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
@@ -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'