diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index aea0e0c..25b3b63 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,22 +12,22 @@ jobs: runs-on: ubuntu-latest steps: - name: Set up Go 1.x - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: - go-version: ^1.17 + go-version: ^1.23 id: go - - name: Set up linter - run: go get -u github.com/mgechev/revive - - name: Check out code into the Go module directory - uses: actions/checkout@v2 + uses: actions/checkout@v4 + + - name: Set up linter + run: go install github.com/mgechev/revive@latest - name: Get dependencies - run: go get -v -t -d ./... + run: go mod tidy - name: Lint - run: revive -config revive.toml -formatter stylish -exclude ./vendor/... ./... + run: $(go env GOPATH)/bin/revive -config revive.toml -formatter stylish -exclude ./vendor/... ./... - name: Vet run: go vet ./...