From 68047dc6ce40528aa7e6877bd7258af0ca07a9f3 Mon Sep 17 00:00:00 2001 From: Jamie Holdstock Date: Thu, 24 Nov 2022 16:19:36 +0800 Subject: [PATCH] build: Ensure ci lints all modules. Use run_tests.sh in CI because the official golangci-lint GitHub action does not handle submodules. --- .github/workflows/go.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 174f74a..20b2bf5 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -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