-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switched from CircleCI to GitHub actions (#171)
- Loading branch information
1 parent
2f8fb33
commit 1b1fae5
Showing
3 changed files
with
67 additions
and
36 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,64 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
json-validation: | ||
name: Json validation | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 7.3 | ||
|
||
- name: Validate composer.json | ||
run: composer validate | ||
|
||
tests: | ||
needs: [ json-validation ] | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php-versions: [ '7.3', '7.4', '8.0' ] | ||
composer-deps: [ 'lowest', 'locked', 'highest' ] | ||
php-unit-versions: [ '8.5.10', '9.0', '9.3', '9.5' ] | ||
exclude: | ||
- composer-deps: 'lowest' | ||
php-unit-versions: '9.0' | ||
- composer-deps: 'lowest' | ||
php-unit-versions: '9.3' | ||
- composer-deps: 'lowest' | ||
php-unit-versions: '9.5' | ||
- composer-deps: 'locked' | ||
php-unit-versions: '8.5.10' | ||
- composer-deps: 'highest' | ||
php-unit-versions: '8.5.10' | ||
name: Tests - PHP ${{ matrix.php-versions }} - Deps ${{ matrix.composer-deps }} - PHPUnit ${{ matrix.php-unit-versions }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
|
||
- name: Require PHPUnit | ||
run: composer require "phpunit/phpunit:~${{ matrix.php-unit-versions }}" --no-update; | ||
|
||
- name: Composer install | ||
uses: ramsey/composer-install@v1 | ||
with: | ||
dependency-versions: "${{ matrix.composer-deps }}" | ||
|
||
- name: Static analysis | ||
run: bin/phpstan.phar analyze src tests | ||
|
||
- name: Run tests | ||
run: | | ||
find tests/ -name "*Test.php" | php fastest -v | ||
./fastest -x phpunit.xml.dist -v "bin/phpunit {}" | ||
bin/behat --config=adapters/Behat/behat.yml |
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