-
-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor #418 Switch CI to GitHub actions instead of Travis (HypeMC)
This PR was merged into the 3.x-dev branch. Discussion ---------- Switch CI to GitHub actions instead of Travis Switch CI to GitHub actions instead of Travis. Commits ------- 2dad903 Switch CI to GitHub actions instead of Travis
- Loading branch information
Showing
2 changed files
with
51 additions
and
55 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,51 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
name: PHPUnit Tests | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php: [ '7.2', '7.3', '7.4', '8.0' ] | ||
monolog: [ '1.*', '2.*' ] | ||
include: | ||
- php: '7.1' | ||
- php: '7.4' | ||
deps: lowest | ||
deprecations: max[self]=0 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
ini-values: zend.exception_ignore_args=false | ||
tools: flex | ||
|
||
- name: Configure composer | ||
if: "${{ matrix.deps == 'highest' }}" | ||
run: composer config minimum-stability dev | ||
|
||
- name: Require Monolog version | ||
if: "${{ matrix.monolog != '' }}" | ||
run: composer require --no-update monolog/monolog:${{ matrix.monolog }} | ||
|
||
- name: Composer install | ||
uses: ramsey/composer-install@v1 | ||
with: | ||
dependency-versions: '${{ matrix.deps }}' | ||
|
||
- name: Install PHPUnit dependencies | ||
run: vendor/bin/simple-phpunit install | ||
|
||
- name: Run tests | ||
run: vendor/bin/simple-phpunit -v --coverage-text | ||
env: | ||
SYMFONY_DEPRECATIONS_HELPER: '${{ matrix.deprecations }}' |
This file was deleted.
Oops, something went wrong.