Skip to content

Commit 22128a7

Browse files
authored
Merge pull request #2 from devmakerlab/f-tests-github-action
Create tests.yml
2 parents 886a733 + cfedf11 commit 22128a7

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

.github/workflows/tests.yml

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

tests/Unit/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

0 commit comments

Comments
 (0)