Skip to content

Commit b9989b7

Browse files
committed
ci: 💚 upgrade setup-go
1 parent 36a4150 commit b9989b7

2 files changed

Lines changed: 22 additions & 29 deletions

File tree

.github/workflows/build-test.yml

Lines changed: 19 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,26 @@ jobs:
66
name: Test
77
runs-on: ubuntu-latest
88
steps:
9-
- name: Checkout
10-
uses: actions/checkout@v2
9+
- name: Checkout
10+
uses: actions/checkout@v2
1111

12-
- name: Setup go
13-
uses: actions/setup-go@v2
14-
with:
15-
go-version: '^1.16'
16-
- run: |
17-
# https://github.com/actions/setup-go/issues/107
18-
cp -f `which go` /usr/bin/go
12+
- name: Setup go
13+
uses: actions/setup-go@v4
14+
with:
15+
go-version: "^1.16"
1916

20-
- name: check fmt
21-
run: |
22-
make fmt-check
23-
24-
- name: vet
25-
run: |
26-
make vet
17+
- name: check fmt
18+
run: |
19+
make fmt-check
2720
28-
- name: test
29-
run: |
30-
make test
21+
- name: vet
22+
run: |
23+
make vet
3124
32-
- name: build
33-
run: |
34-
make
25+
- name: test
26+
run: |
27+
make test
28+
29+
- name: build
30+
run: |
31+
make

.github/workflows/release.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch: null
55
push:
66
tags:
7-
- '*'
7+
- "*"
88

99
jobs:
1010
goreleaser:
@@ -14,13 +14,9 @@ jobs:
1414
uses: actions/checkout@v2
1515

1616
- name: Set up Go
17-
uses: actions/setup-go@v2
17+
uses: actions/setup-go@v4
1818
with:
19-
go-version: '^1.16'
20-
21-
- run: |
22-
# https://github.com/actions/setup-go/issues/107
23-
cp -f `which go` /usr/bin/go
19+
go-version: "^1.16"
2420

2521
- name: Make All
2622
run: |

0 commit comments

Comments
 (0)