Skip to content

Commit 7f7a064

Browse files
authored
Create tests.yml
1 parent e503c36 commit 7f7a064

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/tests.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: tests
2+
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
- cron: '0 0 * * *'
8+
9+
jobs:
10+
run-tests:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
php: [7.3, 7.4, 8.0]
16+
17+
name: P${{ matrix.php }}
18+
19+
steps:
20+
- name: Update apt
21+
run: sudo apt-get update --fix-missing
22+
23+
- name: Checkout code
24+
uses: actions/checkout@v2
25+
26+
- name: Setup PHP
27+
uses: shivammathur/setup-php@v2
28+
with:
29+
php-version: ${{ matrix.php }}
30+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, exif
31+
coverage: none
32+
33+
- name: Install dependencies
34+
run: |
35+
composer update --no-interaction --no-suggest
36+
- name: Execute tests
37+
run: vendor/bin/phpunit

0 commit comments

Comments
 (0)