Skip to content

Commit 9647b43

Browse files
committed
ci: update go and golangci-lint version
1 parent 13906ae commit 9647b43

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

.github/workflows/push.yml

+23-23
Original file line numberDiff line numberDiff line change
@@ -5,35 +5,35 @@ jobs:
55
lint:
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/checkout@v2
9-
- uses: docker://golangci/golangci-lint:v1.34.1
10-
with:
11-
args: golangci-lint run
12-
env:
13-
CGO_ENABLED: 0
8+
- uses: actions/checkout@v2
9+
- uses: docker://golangci/golangci-lint:v1.44.0
10+
with:
11+
args: golangci-lint run
12+
env:
13+
CGO_ENABLED: 0
1414

1515
test:
1616
strategy:
1717
matrix:
18-
go-version: [1.15.x]
18+
go-version: [1.17.x]
1919
os: [ubuntu-latest, macos-latest, windows-latest]
2020
runs-on: ${{ matrix.os }}
2121
steps:
22-
- name: Install Go
23-
uses: actions/setup-go@v2
24-
with:
25-
go-version: ${{ matrix.go-version }}
26-
- name: Checkout code
27-
uses: actions/checkout@v2
28-
- name: Test
29-
run: go test ./...
22+
- name: Install Go
23+
uses: actions/setup-go@v2
24+
with:
25+
go-version: ${{ matrix.go-version }}
26+
- name: Checkout code
27+
uses: actions/checkout@v2
28+
- name: Test
29+
run: go test ./...
3030

3131
goreleaser:
3232
runs-on: ubuntu-latest
3333
if: startsWith(github.ref, 'refs/tags/v')
3434
needs:
35-
- lint
36-
- test
35+
- lint
36+
- test
3737
steps:
3838
- name: Checkout
3939
uses: actions/checkout@v2
@@ -42,7 +42,7 @@ jobs:
4242
- name: Set up Go
4343
uses: actions/setup-go@v2
4444
with:
45-
go-version: 1.15
45+
go-version: 1.17
4646
- name: Login to Docker Registry
4747
env:
4848
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
@@ -56,11 +56,11 @@ jobs:
5656
args: release --rm-dist
5757
env:
5858
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59-
# - name: Docker Push
60-
# if: ${{ github.ref == 'refs/heads/main' }}
61-
# run: |
62-
# docker tag zbindenren/cc:0.3.1 zbindenren/cc:latest
63-
# docker push zbindenren/cc:latest
59+
# - name: Docker Push
60+
# if: ${{ github.ref == 'refs/heads/main' }}
61+
# run: |
62+
# docker tag zbindenren/cc:0.3.1 zbindenren/cc:latest
63+
# docker push zbindenren/cc:latest
6464
- name: Upload assets
6565
uses: actions/upload-artifact@v2
6666
with:

0 commit comments

Comments
 (0)