8000 minor #418 Switch CI to GitHub actions instead of Travis (HypeMC) · symfony/monolog-bundle@92bd02c · GitHub
[go: up one dir, main page]

Skip to content

Commit 92bd02c

Browse files
committed
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
2 parents 91a6bcc + 2dad903 commit 92bd02c

File tree

2 files changed

+51
-55
lines changed

2 files changed

+51
-55
lines changed

.github/workflows/ci.yaml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
name: PHPUnit Tests
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
php: [ '7.2', '7.3', '7.4', '8.0' ]
15+
monolog: [ '1.*', '2.*' ]
16+
include:
17+
- php: '7.1'
18+
- php: '7.4'
19+
deps: lowest
20+
deprecations: max[self]=0
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v2
24+
25+
- name: Setup PHP
26+
uses: shivammathur/setup-php@v2
27+
with:
28+
php-version: ${{ matrix.php }}
29+
ini-values: zend.exception_ignore_args=false
30+
tools: flex
31+
32+
- name: Configure composer
33+
if: "${{ matrix.deps == 'highest' }}"
34+
run: composer config minimum-stability dev
35+
36+
- name: Require Monolog version
37+
if: "${{ matrix.monolog != '' }}"
38+
run: composer require --no-update monolog/monolog:${{ matrix.monolog }}
39+
40+
- name: Composer install
41+
uses: ramsey/composer-install@v1
42+
with:
43+
dependency-versions: '${{ matrix.deps }}'
44+
45+
- name: Install PHPUnit dependencies
46+
run: vendor/bin/simple-phpunit install
47+
48+
- name: Run tests
49+
run: vendor/bin/simple-phpunit -v --coverage-text
50+
env:
51+
SYMFONY_DEPRECATIONS_HELPER: '${{ matrix.deprecations }}'

.travis.yml

Lines changed: 0 additions & 55 deletions
This file was deleted.

0 commit comments

Comments
 (0)
0