Skip to content

Commit

Permalink
upgrade composer and gh action runner (#16)
Browse files Browse the repository at this point in the history
Laravel 8.* now does not use php 7.4
Somehow there was a bug with that.
  • Loading branch information
juampi92 authored Aug 15, 2023
1 parent 7587fbb commit 11f60a7
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 10 deletions.
26 changes: 19 additions & 7 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: run-tests

on: [push, pull_request]
on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
test:
Expand All @@ -10,18 +14,28 @@ jobs:
matrix:
os: [ubuntu-latest]
php: [8.2, 8.1, 8.0, 7.4]
laravel: [9.*, 8.*, 7.*]
laravel: [10.*, 9.*, 8.*, 7.*]
stability: [prefer-stable]
include:
- laravel: 10.*
testbench: 8.*
- laravel: 9.*
testbench: 7.*
- laravel: 8.*
testbench: 6.23
- laravel: 7.*
testbench: 5.20
exclude:
- laravel: 10.*
php: 8.0
- laravel: 10.*
php: 7.4
- laravel: 9.*
php: 8.0
- laravel: 9.*
php: 7.4
- laravel: 8.*
php: 7.4
- laravel: 7.*
php: 8.1
- laravel: 7.*
Expand All @@ -31,7 +45,7 @@ jobs:

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -44,11 +58,9 @@ jobs:
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update --ignore-platform-reqs
composer update --${{ matrix.stability }} --prefer-dist --no-interaction --ignore-platform-reqs
- name: Execute tests
run: vendor/bin/phpunit
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
],
"require": {
"php" : "^7.4|^8.0|^8.1|^8.2",
"illuminate/support": "^7.0|^8.0|^9.0",
"illuminate/http": "^7.0|^8.0|^9.0"
"illuminate/support": "^7.0|^8.0|^9.0|^10.0",
"illuminate/http": "^7.0|^8.0|^9.0|^10.0"
},
"require-dev": {
"orchestra/testbench": "^5.0|^6.0|^7.0",
"orchestra/testbench": "^5.0|^6.0|^7.0|^8.0",
"phpunit/phpunit": "^9.4",
"friendsofphp/php-cs-fixer": "^3.8",
"phpstan/phpstan": "^1.9"
Expand Down

0 comments on commit 11f60a7

Please sign in to comment.