Skip to content

Commit 2976a43

Browse files
aszenzhomersimpsons
authored andcommitted
ci: Add github ci
+ Remove travis
1 parent 5eb24e7 commit 2976a43

File tree

2 files changed

+57
-20
lines changed

2 files changed

+57
-20
lines changed

.github/workflows/ci.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: "Continuous Integration"
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- 2.0
8+
jobs:
9+
test:
10+
name: "Test"
11+
runs-on: "ubuntu-latest"
12+
13+
strategy:
14+
matrix:
15+
php-version:
16+
- "7.4"
17+
- "8.0"
18+
- "8.1"
19+
- "8.2"
20+
- "8.3"
21+
dependencies:
22+
- "lowest"
23+
- "highest"
24+
exclude:
25+
# Exclude lowest deps version as they don't support newer php versions
26+
- dependencies: "lowest"
27+
php-version: "8.3"
28+
- dependencies: "lowest"
29+
php-version: "8.2"
30+
- dependencies: "lowest"
31+
php-version: "8.1"
32+
- dependencies: "lowest"
33+
php-version: "8.0"
34+
35+
steps:
36+
- name: "Checkout"
37+
uses: "actions/checkout@v4"
38+
39+
- name: "Install PHP"
40+
uses: "shivammathur/setup-php@v2"
41+
with:
42+
coverage: "xdebug"
43+
php-version: "${{ matrix.php-version }}"
44+
ini-values: "zend.assertions=1"
45+
46+
- uses: "ramsey/composer-install@v2"
47+
with:
48+
dependency-versions: "${{ matrix.dependencies }}"
49+
50+
- name: "Run PHPUnit"
51+
run: "vendor/bin/phpunit -c phpunit.xml.dist"
52+
53+
- name: Upload coverage results to Coveralls
54+
env:
55+
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56+
run: |
57+
vendor/bin/php-coveralls --coverage_clover=build/logs/clover.xml -v

.travis.yml

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

0 commit comments

Comments
 (0)