Skip to content

Commit c8eb6e9

Browse files
committed
Replace Travis with GitHub Actions
1 parent d2dc886 commit c8eb6e9

File tree

3 files changed

+78
-44
lines changed

3 files changed

+78
-44
lines changed

.github/workflows/tests.yml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
name: tests
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
latest:
9+
name: PHP ${{ matrix.php }} Latest
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
php: ['7.2', '7.3', '7.4', '8.0', '8.1']
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v2
18+
19+
- name: Setup PHP
20+
uses: shivammathur/setup-php@v2
21+
with:
22+
php-version: ${{ matrix.php }}
23+
coverage: none
24+
25+
- name: Install PHP dependencies
26+
run: composer update --prefer-dist --no-interaction --no-progress
27+
28+
- name: Execute tests
29+
run: composer test
30+
31+
lowest:
32+
name: PHP ${{ matrix.php }} Lowest
33+
runs-on: ubuntu-latest
34+
35+
steps:
36+
- name: Checkout code
37+
uses: actions/checkout@v2
38+
39+
- name: Setup PHP
40+
uses: shivammathur/setup-php@v2
41+
with:
42+
php-version: 7.2
43+
coverage: none
44+
45+
- name: Install dependencies
46+
run: composer update --prefer-dist --prefer-stable --prefer-lowest --no-interaction --no-progress
47+
48+
- name: Execute tests
49+
run: composer test
50+
51+
coverage:
52+
name: Code coverage and static analysis
53+
runs-on: ubuntu-latest
54+
55+
steps:
56+
- name: Checkout code
57+
uses: actions/checkout@v2
58+
59+
- name: Setup PHP
60+
uses: shivammathur/setup-php@v2
61+
with:
62+
php-version: 8.0
63+
coverage: xdebug
64+
65+
- name: Install dependencies
66+
run: composer update --prefer-dist --no-interaction --no-progress
67+
68+
- name: Execute tests
69+
run: composer test-ci
70+
71+
- name: Upload coverage
72+
run: |
73+
wget https://scrutinizer-ci.com/ocular.phar
74+
php ocular.phar code-coverage:upload --format=php-clover build/coverage.xml

.travis.yml

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

phpstan.neon

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
parameters:
2+
ignoreErrors:
3+
- message: '#Cannot call method debug\(\) on Psr\\Log\\LoggerInterface\|null#'
4+
path: src/Recorder/FilesystemRecorder.php

0 commit comments

Comments
 (0)