Skip to content

Commit

Permalink
Update github action
Browse files Browse the repository at this point in the history
  • Loading branch information
s1061123 committed May 28, 2024
1 parent f1873dc commit 3d993a7
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,22 @@ jobs:
GO111MODULE: on
TARGET: amd64
steps:
- name: Set up Go 1.17
uses: actions/setup-go@v1
- name: Set up Go 1.21
uses: actions/setup-go@v5
with:
go-version: 1.17
go-version: 1.21
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: install goberalls
run: go get github.com/mattn/goveralls

- name: install golint
run: go get -u golang.org/x/lint/golint

- name: golint
run: golint ./... | grep -v vendor | grep -v ALL_CAPS | xargs -r false
- name: Run Revive Action by pulling pre-built image
uses: docker://morphy/revive-action:v2
with:
exclude: "./vendor/..."

- name: gofmt
run: go fmt ./...
Expand Down

0 comments on commit 3d993a7

Please sign in to comment.