Skip to content

Commit

Permalink
Merge pull request #53 from laravel-notification-channels/ramsey-comp…
Browse files Browse the repository at this point in the history
…oser-install

chore: updated tests workflow to use ramsey/composer-install
  • Loading branch information
alexsoft authored Nov 11, 2021
2 parents 710c042 + e083d12 commit 67fe2f9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ jobs:
tools: composer:v2
coverage: pcov

- name: Install dependencies
run: composer update --prefer-stable --prefer-dist --no-interaction --no-progress
- uses: ramsey/composer-install@v1

- name: Execute tests
run: vendor/bin/phpunit --verbose
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ on:
jobs:
tests:
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: true
matrix:
php: [7.3, 7.4, 8.0, 8.1]
stability: [prefer-lowest, prefer-stable]
experimental: [false]
dependencies:
- lowest
- highest

name: Tests on PHP ${{ matrix.php }} - ${{ matrix.stability }}
name: Tests on PHP ${{ matrix.php }} - ${{ matrix.dependencies }}

steps:
- name: Checkout code
Expand All @@ -28,8 +28,9 @@ jobs:
tools: composer:v2
coverage: none

- name: Install dependencies
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
- uses: "ramsey/composer-install@v1"
with:
dependency-versions: "${{ matrix.dependencies }}"

- name: Execute tests
run: vendor/bin/phpunit --verbose

0 comments on commit 67fe2f9

Please sign in to comment.