Skip to content

Commit 47a8935

Browse files
committed
Run test suite
1 parent fc16fdc commit 47a8935

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/tests.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: tests
2+
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
- cron: '0 0 * * *'
8+
9+
jobs:
10+
tests:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
fail-fast: true
14+
matrix:
15+
php:
16+
- 7.2
17+
- 7.3
18+
- 7.4
19+
- 8.0
20+
composerFlags:
21+
- '--prefer-lowest'
22+
- ''
23+
24+
name: PHP ${{ matrix.php }} w/ Composer ${{ matrix.composerFlags }}
25+
steps:
26+
- name: Checkout code
27+
uses: actions/checkout@v2
28+
29+
- name: Setup PHP
30+
uses: shivammathur/setup-php@v2
31+
with:
32+
php-version: ${{ matrix.php }}
33+
extensions: dom, curl, libxml, mbstring, zip
34+
tools: composer:v2
35+
coverage: none
36+
37+
- name: Install dependencies
38+
run: |
39+
composer update --prefer-dist --no-interaction --no-progress ${{ matrix.composerFlags }}
40+
41+
- name: Execute tests
42+
run: vendor/bin/phpunit --verbose

0 commit comments

Comments
 (0)