Skip to content

Commit 6ab6e9c

Browse files
committed
chore: Github action added
1 parent e64287f commit 6ab6e9c

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/run-tests.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Run tests
2+
3+
on: push
4+
5+
jobs:
6+
php-tests:
7+
runs-on: ${{ matrix.os }}
8+
9+
strategy:
10+
matrix:
11+
php: [7.4, 7.3, 7.2]
12+
13+
name: P${{ matrix.php }} - Run Package Tests
14+
15+
steps:
16+
- name: Checkout Code
17+
uses: actions/checkout@v2
18+
19+
- name: Cache dependencies
20+
uses: actions/cache@v2
21+
with:
22+
path: ~/.composer/cache/files
23+
key: dependencies-composer-${{ hashFiles('composer.json') }}
24+
25+
- name: Setup PHP
26+
uses: shivammathur/setup-php@v1
27+
with:
28+
php-version: ${{ matrix.php }}
29+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite
30+
coverage: none
31+
32+
- name: Install Composer dependencies
33+
run: composer install --prefer-dist --no-interaction --no-suggest
34+
35+
- name: Execute tests
36+
run: vendor/bin/phpunit --verbose

0 commit comments

Comments
 (0)