Skip to content

Commit

Permalink
Fix golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
bwhaley committed May 10, 2024
1 parent ec958c3 commit 865f4de
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 865f4de

Please sign in to comment.