Skip to content

Commit 5de6349

Browse files
committed
ci: switch from travisci to github actions
1 parent 31ee748 commit 5de6349

File tree

3 files changed

+50
-60
lines changed

3 files changed

+50
-60
lines changed

.github/workflows/main.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Run PHP tests
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
run-test:
14+
runs-on: ubuntu-22.04
15+
16+
strategy:
17+
matrix:
18+
php: [7.4, 8.0, 8.1, 8.2, 8.3]
19+
dependency-version: [prefer-lowest, prefer-stable]
20+
21+
name: PHP${{ matrix.php }}_${{ matrix.dependency-version }}
22+
23+
steps:
24+
- uses: actions/checkout@v3
25+
26+
- uses: shivammathur/setup-php@v2
27+
with:
28+
php-version: ${{ matrix.php }}
29+
coverage: xdebug
30+
31+
- name: Install dependencies
32+
run: composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
33+
34+
- name: Check coding style
35+
run: vendor/bin/phpcs -s --standard=phpcs.ruleset.xml .
36+
37+
- name: Execute tests
38+
run: vendor/bin/phpunit
39+
40+
# TODO: add codecoverage // vendor/bin/phpunit --coverage-clover logs/clover.xml

.travis.yml

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

composer.lock

Lines changed: 10 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)