Skip to content

Commit 0e28447

Browse files
authored
Create test pipeline
1 parent 93fb9e2 commit 0e28447

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: tests
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
tests:
11+
runs-on: ${{ matrix.operating-system }}
12+
strategy:
13+
matrix:
14+
operating-system: [ ubuntu-latest ]
15+
php-versions: [ '7.3', '8.0' ]
16+
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Install PHP
20+
uses: shivammathur/setup-php@v2
21+
with:
22+
php-version: ${{ matrix.php-versions }}l
23+
- name: Install Dependencies
24+
run: composer install -q --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist
25+
- name: Execute tests
26+
run: vendor/bin/phpunit tests

0 commit comments

Comments
 (0)