Skip to content

Commit a38e677

Browse files
committed
✨ github actions
1 parent 2f4211d commit a38e677

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/tests.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
tags:
9+
- "**"
10+
11+
name: "PHPUnit tests"
12+
13+
jobs:
14+
15+
tests:
16+
name: "Tests"
17+
18+
runs-on: ubuntu-latest
19+
20+
strategy:
21+
matrix:
22+
php-binary:
23+
- php7.2
24+
- php7.3
25+
# - php7.4
26+
27+
steps:
28+
- name: "Checkout"
29+
uses: actions/[email protected]
30+
31+
- name: "Install dependencies with composer"
32+
run: ${{ matrix.php-binary }} $(which composer) update --no-interaction --prefer-source --no-progress --no-suggest
33+
34+
- name: "Run unit tests with phpunit/phpunit"
35+
run: ${{ matrix.php-binary }} vendor/bin/phpunit --configuration phpunit.xml --coverage-clover clover.xml
36+
37+
# - name: "Send code coverage report to Codecov.io"
38+
# env:
39+
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
40+
# run: bash <(curl -s https://codecov.io/bash)

0 commit comments

Comments
 (0)