Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Set specific CI flags. #832

Merged
merged 1 commit into from
Jun 23, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 15 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
- '7.3'
- '7.4'
- '8.0'
coverage: [ 'none' ]
normalize: [ false ]
validate: [ false ]
laravel:
- '7.0'
- '8.22'
Expand All @@ -22,6 +25,14 @@ jobs:
laravel: '8.22'
- php: '8.0'
laravel: '7.0'
- php: '8.0'
laravel: '8.22'
include:
- php: '8.0'
laravel: '8.22'
coverage: 'xdebug'
normalize: true
validate: true

name: PHP ${{ matrix.php }} / Laravel ${{ matrix.laravel }}

Expand All @@ -33,11 +44,11 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: xdebug
coverage: ${{ matrix.coverage }}
extensions: dom, fileinfo, json, mbstring, pdo_sqlite

- name: Validate composer setup
if: matrix.php == '8.0' && matrix.laravel == '8.22'
if: matrix.validate == true
run: composer validate --strict

- name: Get composer cache directory
Expand All @@ -62,14 +73,14 @@ jobs:
run: composer install --prefer-dist --no-progress

- name: Normalize composer file
if: matrix.php == '8.0' && matrix.laravel == '8.22'
if: matrix.normalize == true
run: composer normalize --dry-run

- name: Run test suite
run: vendor/bin/phpunit -v

- name: Upload coverage results
if: matrix.php == '8.0' && matrix.laravel == '8.22'
if: matrix.coverage != 'none'
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
Expand Down