From 3d993a77a81243dc84d4f4728e01a7451abd7e08 Mon Sep 17 00:00:00 2001 From: Tomofumi Hayashi Date: Wed, 29 May 2024 00:47:44 +0900 Subject: [PATCH] Update github action --- .github/workflows/build.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d1bc8e2..c4106bf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 ./...