Skip to content

Commit 28d5697

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

File tree

2 files changed

+39
-52
lines changed

2 files changed

+39
-52
lines changed

.github/workflows/main.yml

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

.travis.yml

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

0 commit comments

Comments
 (0)