File tree Expand file tree Collapse file tree 5 files changed +209
-101
lines changed Expand file tree Collapse file tree 5 files changed +209
-101
lines changed Original file line number Diff line number Diff line change 1
1
name : cloc
2
2
on :
3
3
pull_request :
4
+
5
+ # Cancel the workflow in progress in newer build is about to start.
6
+ concurrency :
7
+ group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
8
+ cancel-in-progress : true
9
+
4
10
jobs :
5
11
cloc :
6
12
runs-on : ubuntu-latest
@@ -17,14 +23,14 @@ jobs:
17
23
- name : Count Lines Of Code
18
24
id : loc
19
25
run : |
20
- curl -OL https://github.com/vearutop/sccdiff/releases/download/v1.0.1 /linux_amd64.tar.gz && tar xf linux_amd64.tar.gz
26
+ curl -sLO https://github.com/vearutop/sccdiff/releases/download/v1.0.2 /linux_amd64.tar.gz && tar xf linux_amd64.tar.gz && echo "b17e76bede22af0206b4918d3b3c4e7357f2a21b57f8de9e7c9dc0eb56b676c0 sccdiff" | shasum -c
21
27
OUTPUT=$(cd pr && ../sccdiff -basedir ../base)
22
- OUTPUT="${OUTPUT//'%'/'%25'}"
23
- OUTPUT="${OUTPUT//$'\n'/'%0A'}"
24
- OUTPUT="${OUTPUT//$'\r'/'%0D'}"
28
+ echo "${OUTPUT}"
29
+ OUTPUT="${OUTPUT//$'\n'/%0A}"
25
30
echo "::set-output name=diff::$OUTPUT"
26
31
27
32
- name : Comment Code Lines
33
+ continue-on-error : true
28
34
uses : marocchino/sticky-pull-request-comment@v2
29
35
with :
30
36
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 32
32
tools : composer
33
33
34
34
- name : Populate vendor
35
- run : ' [ -e vendor ] || ( composer install && patch -s -p0 < ./tests/phpunit.patch) '
35
+ run : ' [ -e vendor ] || composer install'
36
36
37
37
- name : Run Tests With Coverage
38
38
run : make deps test-coverage && bash <(curl -s https://codecov.io/bash)
Original file line number Diff line number Diff line change 31
31
tools : composer
32
32
33
33
- name : Populate vendor
34
- run : ' [ -e vendor ] || ( composer install && patch -s -p0 < ./tests/phpunit.patch) '
34
+ run : ' [ -e vendor ] || composer install'
35
35
36
36
- name : Run Tests
37
37
run : make deps test
Original file line number Diff line number Diff line change 13
13
"ext-json" : " *"
14
14
},
15
15
"require-dev" : {
16
- "phpunit /phpunit" : " ^ 4.8.23 "
16
+ "phperf /phpunit" : " 4.8.37 "
17
17
},
18
18
"autoload" : {
19
19
"psr-4" : {
You can’t perform that action at this time.
0 commit comments