Skip to content

Commit 99cf16d

Browse files
authored
Merge pull request #32 from chelout/github-actions
Added github actions
2 parents d0891b1 + 23a9eb8 commit 99cf16d

File tree

2 files changed

+40
-33
lines changed

2 files changed

+40
-33
lines changed

.github/workflows/tests.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: tests
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
tests:
9+
10+
runs-on: ubuntu-latest
11+
strategy:
12+
fail-fast: true
13+
matrix:
14+
php: [7.2, 7.3, 7.4]
15+
stability: [prefer-lowest, prefer-stable]
16+
17+
name: P${{ matrix.php }} - S${{ matrix.stability }}
18+
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v2
22+
23+
- name: Cache dependencies
24+
uses: actions/cache@v1
25+
with:
26+
path: ~/.composer/cache/files
27+
key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
28+
29+
- name: Setup PHP
30+
uses: shivammathur/setup-php@v2
31+
with:
32+
php-version: ${{ matrix.php }}
33+
extensions: pdo, sqlite, pdo_sqlite
34+
coverage: none
35+
36+
- name: Install dependencies
37+
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-suggest
38+
39+
- name: Execute tests
40+
run: vendor/bin/phpunit --verbose

.travis.yml

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

0 commit comments

Comments
 (0)