Skip to content

Commit 5fcdae5

Browse files
authored
Migrate from Travis to GitHub Actions (#56)
1 parent 5e9f3ba commit 5fcdae5

File tree

2 files changed

+37
-41
lines changed

2 files changed

+37
-41
lines changed

.github/workflows/ci.yaml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: "CI"
2+
3+
on:
4+
push:
5+
branches:
6+
- "main"
7+
pull_request: null
8+
9+
jobs:
10+
tests:
11+
runs-on: "ubuntu-latest"
12+
name: "Test ${{ matrix.php }}"
13+
strategy:
14+
fail-fast: true
15+
matrix:
16+
php:
17+
- "7.3"
18+
- "7.4"
19+
- "8.0"
20+
- "8.1"
21+
22+
steps:
23+
- name: "Check out repository code"
24+
uses: "actions/checkout@v2"
25+
26+
- name: "Setup PHP"
27+
uses: "shivammathur/setup-php@v2"
28+
with:
29+
php-version: "${{ matrix.php }}"
30+
tools: "composer"
31+
coverage: "pcov"
32+
33+
- name: "Install Composer dependencies"
34+
uses: "ramsey/composer-install@v2"
35+
36+
- name: "Run tests"
37+
run: "make"

.travis.yml

-41
This file was deleted.

0 commit comments

Comments
 (0)