Skip to content

Commit

Permalink
chore(ci): fix golangci-lint and setup-go steps (#981)
Browse files Browse the repository at this point in the history
  • Loading branch information
noahdietz committed Jun 8, 2022
1 parent 8873ed7 commit cbd521d
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,27 @@ on:
jobs:
unit-tests:
runs-on: ubuntu-latest
container: golang:1.14
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.14
- run: go test -p 1 ./...
lint:
runs-on: ubuntu-latest
container: golang:1.14
steps:
- uses: actions/checkout@v3
- name: Install golangci-lint
run: curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin latest
- name: Run golangci-lint
run: golangci-lint run ./...
- uses: actions/setup-go@v3
with:
go-version: 1.14
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
quality-checker:
runs-on: ubuntu-latest
container: golang:1.14-alpine
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.14
- name: Run the quality checker (which catches obvious mistakes, missing docs, etc.)
run: go run ./.github/quality-checker

0 comments on commit cbd521d

Please sign in to comment.