Skip to content

Commit d141790

Browse files
authored
Merge pull request #29 from fatih/update-ci
Update CI settings with latest, add linter
2 parents 73df677 + 2c69fe9 commit d141790

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/go.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Set up Go
2121
uses: actions/setup-go@v2
2222
with:
23-
go-version: 1.16
23+
go-version: 1.17
2424

2525
- name: Check out code into the Go module directory
2626
uses: actions/checkout@v2
@@ -30,6 +30,12 @@ jobs:
3030
go mod tidy -v
3131
go test -race ./...
3232
33+
- name: Lint
34+
uses: dominikh/staticcheck-action@v1.1.0
35+
with:
36+
version: "2021.1.1"
37+
install-go: false
38+
3339
- name: Build
3440
run: go build ./...
3541

@@ -38,7 +44,7 @@ jobs:
3844
# only release on tags
3945
if: success() && startsWith(github.ref, 'refs/tags/')
4046
with:
41-
version: v0.156.1
47+
version: v1.1.0
4248
args: release --rm-dist
4349
env:
4450
GITHUB_TOKEN: ${{ secrets.FAILLINT_ACTIONS_BOT_TOKEN }}

0 commit comments

Comments
 (0)