Skip to content

Commit

Permalink
Merge branch 'release/v1.5.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
sunaoka committed Oct 7, 2024
2 parents 9ddff08 + d9e8be5 commit 9f6a63e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ on:
jobs:
test:
runs-on: ${{ matrix.os }}

env:
latest_php: 8.3
latest_laravel: 11

strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -93,13 +98,16 @@ jobs:
uses: actions/checkout@v4

- name: Install dependencies
run: |
composer require "illuminate/support=^${{ matrix.laravel }}" --no-update
composer update --prefer-dist --no-interaction --no-progress
uses: nick-fields/retry@v3
with:
timeout_seconds: 30
max_attempts: 3
command: |
composer require "illuminate/support=^${{ matrix.laravel }}" --no-update --no-plugins
composer install --quiet --no-plugins --no-ansi --prefer-dist --no-progress --no-interaction
- name: Migrate phpunit XML configuration
continue-on-error: true
run: vendor/bin/phpunit --migrate-configuration
run: vendor/bin/phpunit --migrate-configuration || true

- name: Run test suite
run: vendor/bin/phpunit --coverage-clover=coverage.xml
Expand All @@ -110,3 +118,4 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
fail_ci_if_error: false
if: matrix.php == env.latest_php && matrix.laravel == env.latest_laravel
4 changes: 3 additions & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
backupGlobals="false"
backupStaticAttributes="false"
beStrictAboutTestsThatDoNotTestAnything="false"
bootstrap="vendor/autoload.php"
Expand Down

0 comments on commit 9f6a63e

Please sign in to comment.