Skip to content

Commit 5034de1

Browse files
Merge pull request #103 from VincentLanglet/github-actions
Add github actions
2 parents 230084a + ce56278 commit 5034de1

File tree

3 files changed

+44
-19
lines changed

3 files changed

+44
-19
lines changed

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
* text=auto
22

33
/tests export-ignore
4+
.github export-ignore
45
.gitattributes export-ignore
56
.gitignore export-ignore
67
.php_cs export-ignore
7-
.travis.yml export-ignore
88
phpunit.xml.dist export-ignore

.github/workflows/tests.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
php-version:
16+
- '7.1'
17+
- '7.2'
18+
- '7.3'
19+
- '7.4'
20+
- '8.0'
21+
- '8.1'
22+
- '8.2'
23+
- '8.3'
24+
- '8.4'
25+
- '8.5'
26+
27+
name: PHP ${{ matrix.php-version }}
28+
29+
steps:
30+
- name: Checkout code
31+
uses: actions/checkout@v4
32+
33+
- name: Setup PHP
34+
uses: shivammathur/setup-php@v2
35+
with:
36+
php-version: ${{ matrix.php-version }}
37+
coverage: none
38+
39+
- name: Install dependencies
40+
run: composer install --prefer-dist --no-progress --no-interaction
41+
42+
- name: Run tests
43+
run: composer test

.travis.yml

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

0 commit comments

Comments
 (0)