-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate CI from Travis to Github Actions
- Loading branch information
Showing
2 changed files
with
50 additions
and
34 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,50 @@ | ||
name: CI | ||
|
||
on: | ||
pull_request: ~ | ||
push: | ||
branches: | ||
- master | ||
schedule: | ||
- cron: "47 6 * * 1" # once a month, to surface issues with newer dependencies | ||
|
||
jobs: | ||
Tests: | ||
runs-on: 'ubuntu-latest' | ||
strategy: | ||
matrix: | ||
php: | ||
- '7.4' | ||
- '8.0' | ||
- '8.1' | ||
- '8.2' | ||
- '8.3' | ||
- '8.4' | ||
dependencies: ['highest'] | ||
include: | ||
- description: '(lowest)' | ||
php: '7.4' | ||
dependencies: 'lowest' | ||
|
||
name: PHP ${{ matrix.php }} ${{ matrix.description }} | ||
steps: | ||
- name: "Checkout" | ||
uses: actions/checkout@v4 | ||
- name: "Install PHP" | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
coverage: xdebug | ||
- name: "Install dependencies" | ||
uses: ramsey/composer-install@v3 | ||
with: | ||
dependency-versions: ${{ matrix.dependencies }} | ||
- name: "Run PHPStan analysis" | ||
run: composer phpstan | ||
- name: "Run tests" | ||
run: vendor/bin/phpunit --coverage-clover=coverage.xml --colors=always | ||
- name: "Upload test coverage" | ||
uses: codecov/codecov-action@v5 | ||
with: | ||
files: './coverage.xml' | ||
fail_ci_if_error: true |
This file was deleted.
Oops, something went wrong.