Skip to content

Commit

Permalink
Improve CI (#758)
Browse files Browse the repository at this point in the history
  • Loading branch information
kubawerlos committed Mar 17, 2022
1 parent 4ddf50b commit af0a6f0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/ci.yaml
Expand Up @@ -21,20 +21,15 @@ jobs:
- run: composer analyse

test:
name: PHP ${{ matrix.php-version }} on ${{ matrix.os }} ${{ matrix.description }}
name: PHP ${{ matrix.php-version }} ${{ matrix.description }}
strategy:
fail-fast: false
matrix:
os: [ macos-latest, ubuntu-latest, windows-latest ]
php-version: [ '7.4', '8.1' ]
composer-flags: [ '' ]
coverage-driver: [ none ]
install-fixer-from-master-branch: [ false ]
include:
- os: ubuntu-latest
- description: 'with lowest dependencies'
os: ubuntu-latest
php-version: '7.4'
composer-flags: '--prefer-lowest'
description: 'with lowest dependencies'
- os: ubuntu-latest
php-version: '8.0'
- os: ubuntu-latest
Expand All @@ -48,6 +43,12 @@ jobs:
- os: ubuntu-latest
php-version: '8.2'
composer-flags: '--ignore-platform-reqs'
- description: on macOS
os: macos-latest
php-version: '8.1'
- description: on Windows
os: windows-latest
php-version: '8.1'
runs-on: ${{ matrix.os }}
timeout-minutes: 10
env:
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Expand Up @@ -33,12 +33,12 @@
"analyse": [
"@install-dev-tools",
"php-cs-fixer fix --ansi --diff --dry-run --verbose",
"@composer --working-dir=.dev-tools analyse"
"@composer --no-interaction --working-dir=.dev-tools analyse"
],
"fix": [
"@install-dev-tools",
"php-cs-fixer fix --ansi --verbose || exit 0",
"@composer --working-dir=.dev-tools fix",
"@composer --no-interaction --working-dir=.dev-tools fix",
"@php .dev-tools/readme > README.md"
],
"infection": [
Expand Down

0 comments on commit af0a6f0

Please sign in to comment.