Skip to content

Commit

Permalink
minor #418 Switch CI to GitHub actions instead of Travis (HypeMC)
Browse files Browse the repository at this point in the history
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
derrabus committed Sep 28, 2021
2 parents 91a6bcc + 2dad903 commit 92bd02c
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 55 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/ci.yaml
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 }}'
55 changes: 0 additions & 55 deletions .travis.yml

This file was deleted.

0 comments on commit 92bd02c

Please sign in to comment.