From 865f4deae613025ab6f792f52707f9f85b073bb2 Mon Sep 17 00:00:00 2001 From: Ben Whaley <503816+bwhaley@users.noreply.github.com> Date: Fri, 10 May 2024 14:14:54 -0700 Subject: [PATCH] Fix golangci-lint --- .github/workflows/test.yaml | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index c33787a..8938f0b 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -20,28 +20,40 @@ jobs: pip install -r functions/replace-route/tests/test_requirements.txt python -m pytest - terraform_tests: + golang_lint: permissions: - id-token: write contents: read runs-on: ubuntu-latest - defaults: - run: - working-directory: ./test steps: - uses: actions/checkout@v4 - name: Install Go uses: actions/setup-go@v5 with: - go-version-file: test/go.mod - cache-dependency-path: test/go.sum + go-version-file: go.mod + cache-dependency-path: go.sum - - name: Lint + - name: golangci-lint uses: golangci/golangci-lint-action@v3 with: version: v1.53 # use config in .golangci.yaml to configure the action further + # terraform_tests: + # permissions: + # id-token: write + # contents: read + # runs-on: ubuntu-latest + # defaults: + # run: + # working-directory: ./test + # steps: + # - uses: actions/checkout@v4 + + # - name: Install Go + # uses: actions/setup-go@v5 + # with: + # go-version-file: test/go.mod + # cache-dependency-path: test/go.sum # - name: Go Tidy # run: go mod tidy && git diff --exit-code