Skip to content

Commit b5605a4

Browse files
committed
Add github action
1 parent c859baa commit b5605a4

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- reopened
8+
push:
9+
branches:
10+
- master
11+
12+
jobs:
13+
build-test:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout Code
17+
uses: actions/checkout@v2
18+
19+
- name: Install composer and dependencies
20+
uses: php-actions/composer@v6
21+
22+
- name: PHPUnit Tests
23+
uses: php-actions/phpunit@v3
24+
env:
25+
XDEBUG_MODE: coverage
26+
with:
27+
bootstrap: vendor/autoload.php
28+
configuration: phpunit.xml
29+
php_extensions: xdebug
30+
args: tests --coverage-clover ./coverage.xml
31+
32+
- name: Upload to Codecov
33+
uses: codecov/codecov-action@v2
34+
with:
35+
token: ${{ secrets.CODE_COV_TOKEN }}
36+
files: ./coverage.xml
37+
verbose: true

0 commit comments

Comments
 (0)