Skip to content

Commit 605303d

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

File tree

3 files changed

+51
-60
lines changed

3 files changed

+51
-60
lines changed

.github/workflows/main.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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+
dependency-version: [prefer-stable]
21+
22+
name: PHP${{ matrix.php }}_${{ matrix.dependency-version }}
23+
24+
steps:
25+
- uses: actions/checkout@v3
26+
27+
- uses: shivammathur/setup-php@v2
28+
with:
29+
php-version: ${{ matrix.php }}
30+
coverage: xdebug
31+
32+
- name: Install dependencies
33+
run: composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
34+
35+
- name: Check coding style
36+
run: vendor/bin/phpcs -s --standard=phpcs.ruleset.xml .
37+
38+
- name: Execute tests
39+
run: vendor/bin/phpunit
40+
41+
# 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)