Skip to content

Commit acb4af6

Browse files
committed
simplify linting and release
1 parent e228cae commit acb4af6

File tree

2 files changed

+1
-20
lines changed

2 files changed

+1
-20
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,35 +12,17 @@ env:
1212
GOLANGCI_LINT_VERSION: v1.60
1313

1414
jobs:
15-
detect-modules:
16-
runs-on: ubuntu-latest
17-
outputs:
18-
modules: ${{ steps.set-modules.outputs.modules }}
19-
steps:
20-
- uses: actions/checkout@v4
21-
- uses: actions/setup-go@v5
22-
with:
23-
go-version: ${{ env.GO_VERSION }}
24-
- id: set-modules
25-
run: echo "modules=$(go list -m -json | jq -s '.' | jq -c '[.[].Dir]')" >> $GITHUB_OUTPUT
26-
2715
golangci-lint:
28-
needs: detect-modules
2916
runs-on: ubuntu-latest
30-
strategy:
31-
matrix:
32-
modules: ${{ fromJSON(needs.detect-modules.outputs.modules) }}
3317
steps:
3418
- uses: actions/checkout@v4
3519
- uses: actions/setup-go@v5
3620
with:
3721
go-version: ${{ env.GO_VERSION }}
38-
- name: golangci-lint ${{ matrix.modules }}
22+
- name: golangci-lint Action
3923
uses: golangci/golangci-lint-action@v6
4024
with:
41-
version: ${{ env.GOLANGCI_LINT_VERSION }}
4225
args: --timeout=3m
43-
working-directory: ${{ matrix.modules }}
4426

4527
terraform-tests:
4628
runs-on: ubuntu-latest

.github/workflows/release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ jobs:
4343
uses: goreleaser/goreleaser-action@v6
4444
with:
4545
args: release --clean
46-
workdir: ./terraform
4746
env:
4847
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_FOR_TERRAFORM_REPO }}
4948
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}

0 commit comments

Comments
 (0)