Skip to content

Commit 1349703

Browse files
authored
Create test workflow
1 parent 727fb29 commit 1349703

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/php.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Test
2+
3+
on: [push]
4+
5+
jobs:
6+
test:
7+
name: Test
8+
9+
runs-on: ubuntu-latest
10+
11+
strategy:
12+
matrix:
13+
php-version: ['7.2', '7.3']
14+
15+
steps:
16+
- name: Setup PHP ${{ matrix.php-version }}
17+
uses: shivammathur/setup-php@v2
18+
with:
19+
php-version: ${{ matrix.php-version }}
20+
21+
- name: Checkout
22+
uses: actions/checkout@v2
23+
24+
- name: Validate composer.json and composer.lock
25+
run: composer validate
26+
27+
- name: Install dependencies
28+
run: composer install --prefer-dist --no-progress --no-suggest
29+
30+
- name: Run test suite
31+
run: composer run-script test

0 commit comments

Comments
 (0)