Skip to content

Commit 2157b1f

Browse files
committed
add CI workflow
1 parent 5e3126b commit 2157b1f

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/run-tests.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: run-tests
2+
3+
on:
4+
push:
5+
schedule:
6+
- cron: '0 0 * * *'
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
fail-fast: true
13+
matrix:
14+
php: [8.0, 7.4]
15+
dependency-version: [prefer-lowest, prefer-stable]
16+
17+
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
18+
19+
steps:
20+
- uses: actions/checkout@v2
21+
22+
- uses: shivammathur/setup-php@v2
23+
with:
24+
php-version: ${{ matrix.php }}
25+
extensions: dom, curl, libxml, mbstring, zip
26+
27+
- uses: actions/cache@v2
28+
with:
29+
path: ~/.composer/cache/files
30+
key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
31+
restore-keys: |
32+
dependencies-php-${{ matrix.php }}-composer-
33+
dependencies-php-
34+
35+
- run: composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
36+
37+
- run: vendor/bin/phpunit

0 commit comments

Comments
 (0)