Skip to content

Commit

Permalink
Fix GH action
Browse files Browse the repository at this point in the history
  • Loading branch information
jenky committed Mar 9, 2024
1 parent 88e5ee2 commit 9f7b3e2
Showing 1 changed file with 7 additions and 27 deletions.
34 changes: 7 additions & 27 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,38 +11,19 @@ jobs:
matrix:
# os: [ubuntu-latest, windows-latest]
os: [ubuntu-latest]
php: [7.2, 7.3, 7.4, 8.0, 8.1]
laravel: [7.*, 8.*, 9.*]
include:
- laravel: 7.*
testbench: 5.*
- laravel: 8.*
testbench: 6.*
- laravel: 9.*
testbench: 7.*
exclude:
- laravel: 7.*
php: 8.1
- laravel: 8.*
php: 7.2
- laravel: 9.*
php: 7.2
- laravel: 9.*
php: 7.3
- laravel: 9.*
php: 7.4

name: PHP ${{ matrix.php }} / Laravel ${{ matrix.laravel }} - ${{ matrix.os }}
php: [8.1, 8.2, 8.3]

name: PHP ${{ matrix.php }} / ${{ matrix.os }}

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

- name: Cache dependencies
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.composer/cache/files
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}-os-${{ matrix.os }}
key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}-os-${{ matrix.os }}

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -52,11 +33,10 @@ jobs:

- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --prefer-dist --no-interaction --no-suggest
composer install --prefer-dist --no-interaction --no-suggest
- name: Execute tests
run: vendor/bin/phpunit --coverage-text --coverage-clover=coverage.xml

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v3

0 comments on commit 9f7b3e2

Please sign in to comment.