Skip to content

Commit 6e9e047

Browse files
authored
Merge pull request #2 from go-waitfor/copilot/fix-f8e384fa-e6c2-4629-aa7b-5ffd45b1d9a9
Fix GitHub Actions build pipeline failures
2 parents 4bd204c + 1ee1ad2 commit 6e9e047

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/build.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,22 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Set up Go 1.x
15-
uses: actions/setup-go@v2
15+
uses: actions/setup-go@v4
1616
with:
17-
go-version: ^1.17
17+
go-version: ^1.23
1818
id: go
1919

20-
- name: Set up linter
21-
run: go get -u github.com/mgechev/revive
22-
2320
- name: Check out code into the Go module directory
24-
uses: actions/checkout@v2
21+
uses: actions/checkout@v4
22+
23+
- name: Set up linter
24+
run: go install github.com/mgechev/revive@latest
2525

2626
- name: Get dependencies
27-
run: go get -v -t -d ./...
27+
run: go mod tidy
2828

2929
- name: Lint
30-
run: revive -config revive.toml -formatter stylish -exclude ./vendor/... ./...
30+
run: $(go env GOPATH)/bin/revive -config revive.toml -formatter stylish -exclude ./vendor/... ./...
3131

3232
- name: Vet
3333
run: go vet ./...

0 commit comments

Comments
 (0)