File tree 2 files changed +39
-0
lines changed
2 files changed +39
-0
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change 1
1
/builds
2
+ /coverage.xml
2
3
/vendor
3
4
/.idea
4
5
/.vscode
You can’t perform that action at this time.
0 commit comments