From 9117288c4380863a30ffd09bc2a7bac52087883f Mon Sep 17 00:00:00 2001 From: bepsvpt <8221099+bepsvpt@users.noreply.github.com> Date: Sun, 17 Mar 2024 08:08:54 +0800 Subject: [PATCH] chore: update testing workflow --- .github/workflows/laravel.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/laravel.yml b/.github/workflows/laravel.yml index bf59cfe..ddd57f0 100644 --- a/.github/workflows/laravel.yml +++ b/.github/workflows/laravel.yml @@ -2,10 +2,8 @@ name: Laravel on: push: - pull_request: schedule: - # run tests on every week Monday - - cron: '0 0 * * 1' + - cron: '0 0 * * 1' # run tests on every week Monday jobs: static_analysis: @@ -45,10 +43,10 @@ jobs: run: composer normalize --dry-run - name: Run static analysis - run: vendor/bin/phpstan --verbose + run: vendor/bin/phpstan --memory-limit=-1 --verbose - name: Run coding style checker - run: vendor/bin/pint --verbose --test + run: vendor/bin/pint -v --test unit_tests: name: Laravel ${{ matrix.laravel }} (${{ matrix.php }}, ${{ matrix.os }}) @@ -59,9 +57,9 @@ jobs: fail-fast: false matrix: - laravel: ['11.0', '10.0', '9.0', '8.0', '7.0', '6.0', '5.8.0', '5.7.0', '5.6.0', '5.5.0', '5.4.0', '5.3.0', '5.2.0', '5.1.0'] - php: ['8.3', '8.2', '8.1', '8.0', '7.4', '7.3', '7.2', '7.1', '7.0'] - os: [ubuntu-latest, windows-latest, macOS-latest] + laravel: [ '11.0', '10.0', '9.0', '8.0', '7.0', '6.0', '5.8.0', '5.7.0', '5.6.0', '5.5.0', '5.4.0', '5.3.0', '5.2.0', '5.1.0' ] + php: [ '8.3', '8.2', '8.1', '8.0', '7.4', '7.3', '7.2', '7.1', '7.0' ] + os: [ ubuntu-latest, windows-latest, macOS-latest ] exclude: - { laravel: '5.1.0', php: '8.0' } - { laravel: '5.1.0', php: '8.1' }