-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move from TravisCI to Github Actions
- Loading branch information
Lucas Michot
committed
Mar 3, 2021
1 parent
d4d73c6
commit 08a69b6
Showing
5 changed files
with
40 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: tests | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: true | ||
matrix: | ||
php: [ '7.0','7.1','7.2','7.3', '7.4' ] | ||
stability: [ prefer-lowest, prefer-stable ] | ||
|
||
name: PHP ${{ matrix.php }} - ${{ matrix.stability }} | ||
|
||
steps: | ||
- name: Checkout the code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
coverage: none | ||
extensions: curl | ||
php-version: ${{ matrix.php }} | ||
tools: composer:v2 | ||
|
||
- name: Install composer dependencies | ||
uses: nick-invision/retry@v2 | ||
with: | ||
command: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress | ||
max_attempts: 5 | ||
timeout_minutes: 5 | ||
|
||
- name: Run the tests | ||
run: vendor/bin/phpunit --verbose |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.