Skip to content

Commit a8f8fa6

Browse files
authored
Remove obsolete PHP versions from CI (#149)
1 parent e163d93 commit a8f8fa6

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

.github/workflows/cloc.yml

+10-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: cloc
22
on:
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+
410
jobs:
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 }}

.github/workflows/test-unit.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
matrix:
1313
operating-system: [ 'ubuntu-latest' ]
14-
php-versions: [ '5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '8.0', '8.1' ]
14+
php-versions: [ '5.6', '7.0', '7.1', '7.2', '7.3', '8.0', '8.1' ]
1515
steps:
1616
- name: Checkout
1717
uses: actions/checkout@v2

0 commit comments

Comments
 (0)