Skip to content

Commit 12927cb

Browse files
committed
ci: #4 code coverage
1 parent 0a21d20 commit 12927cb

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

.github/workflows/ci.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- php
6+
pull_request:
7+
branches:
8+
- php
9+
10+
jobs:
11+
test:
12+
name: Test
13+
runs-on: ubuntu-latest
14+
container:
15+
image: ecoding/php:8.0
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v2
19+
20+
- name: test
21+
run: |
22+
composer install
23+
XDEBUG_MODE=coverage ./vendor/bin/pest --coverage-clover coverage.xml
24+
25+
- name: codecov
26+
uses: codecov/codecov-action@v1
27+
28+
- name: GitHub Environment Variables Action
29+
uses: FranzDiebold/github-env-vars-action@v2
30+
31+
- name: build
32+
run: php coding app:build --build-version=${CI_SHA_SHORT}
33+
34+
- name: Upload Artifact
35+
uses: actions/upload-artifact@v2
36+
with:
37+
name: coding
38+
path: builds/coding

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/builds
2+
/coverage.xml
23
/vendor
34
/.idea
45
/.vscode

0 commit comments

Comments
 (0)