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 11name : cloc
22on :
33 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+
410jobs :
511 cloc :
612 runs-on : ubuntu-latest
@@ -17,14 +23,14 @@ jobs:
1723 - name : Count Lines Of Code
1824 id : loc
1925 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
2127 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}"
2530 echo "::set-output name=diff::$OUTPUT"
2631
2732 - name : Comment Code Lines
33+ continue-on-error : true
2834 uses : marocchino/sticky-pull-request-comment@v2
2935 with :
3036 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 3232 tools : composer
3333
3434 - name : Populate vendor
35- run : ' [ -e vendor ] || ( composer install && patch -s -p0 < ./tests/phpunit.patch) '
35+ run : ' [ -e vendor ] || composer install'
3636
3737 - name : Run Tests With Coverage
3838 run : make deps test-coverage && bash <(curl -s https://codecov.io/bash)
Original file line number Diff line number Diff line change 3131 tools : composer
3232
3333 - name : Populate vendor
34- run : ' [ -e vendor ] || ( composer install && patch -s -p0 < ./tests/phpunit.patch) '
34+ run : ' [ -e vendor ] || composer install'
3535
3636 - name : Run Tests
3737 run : make deps test
Original file line number Diff line number Diff line change 1313 "ext-json" : " *"
1414 },
1515 "require-dev" : {
16- "phpunit /phpunit" : " ^ 4.8.23 "
16+ "phperf /phpunit" : " 4.8.37 "
1717 },
1818 "autoload" : {
1919 "psr-4" : {
You can’t perform that action at this time.
0 commit comments