build: Ensure ci lints all modules.

Use run_tests.sh in CI because the official golangci-lint GitHub action does not handle submodules.
This commit is contained in:
Jamie Holdstock 2022-11-24 16:19:36 +08:00 committed by Jamie Holdstock
parent c9f3573d8b
commit 68047dc6ce

View File

@ -16,10 +16,7 @@ jobs:
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 #v3.1.0
- name: Build
run: go build ./...
- name: Test
run: env GORACE="halt_on_error=1" go test -race ./...
- name: Lint
uses: golangci/golangci-lint-action@0ad9a0988b3973e851ab0a07adf248ec2e100376 #v3.3.1
with:
version: v1.50.1
- name: Install Linters
run: "curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.50.1"
- name: Test and Lint
run: ./run_tests.sh