Skip to content

Commit

Permalink
Update test workflow and dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Thavarshan committed Sep 25, 2024
1 parent b8ca250 commit dec365c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@ name: Tests

on:
push:
paths:
- '**.php'
- '.github/workflows/run-tests.yml'
- 'phpunit.xml.dist'
- 'composer.json'
- 'composer.lock'
branches:
- main
- refactor/**
- feature/**
- fix/**

jobs:
test:
Expand All @@ -19,9 +18,11 @@ jobs:
os: [ubuntu-latest]
php: [8.3, 8.2]
laravel: [9.*, 10.*, 11.*]
symfony_http_foundation: [6.4, 7.1]
psr_http_message: [1.0, 2.0]
stability: [prefer-stable]

name: PHP ${{ matrix.php }} on ${{ matrix.os }} - Laravel ${{ matrix.laravel }} - ${{ matrix.stability }}
name: PHP ${{ matrix.php }} on ${{ matrix.os }} - Laravel ${{ matrix.laravel }} - Symfony ${{ matrix.symfony_http_foundation }} - PSR ${{ matrix.psr_http_message }} - ${{ matrix.stability }}

steps:
- name: Checkout code
Expand All @@ -36,7 +37,7 @@ jobs:

- name: Install dependencies
run: |
composer require laravel/framework:${{ matrix.laravel }} --no-update
composer require laravel/framework:${{ matrix.laravel }} symfony/http-foundation:${{ matrix.symfony_http_foundation }} psr/http-message:${{ matrix.psr_http_message }} --no-update
composer install --no-interaction --no-progress --no-suggest
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"require": {
"php": "^8.2 || ^8.3",
"guzzlehttp/guzzle": "^7.8",
"psr/http-message": "^1.0",
"psr/http-message": "^1.0 || ^2.0",
"symfony/http-foundation": "^6.0 || ^7.0"
},
"require-dev": {
Expand Down

0 comments on commit dec365c

Please sign in to comment.