Skip to content

Commit

Permalink
fix: actions setup go path
Browse files Browse the repository at this point in the history
uses env to set the module directory
  • Loading branch information
iamdexterpark committed Jan 2, 2025
1 parent 60e6bbb commit 583185c
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/integration-test-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:
with:
go-version-file: 'go.mod'
cache: true
env:
working-directory: ./
- run: go mod download
- run: go build -v .

Expand All @@ -38,6 +40,8 @@ jobs:
with:
go-version-file: 'go.mod'
cache: true
env:
working-directory: ./
- run: go generate ./...
- name: git diff
run: |
Expand All @@ -56,6 +60,8 @@ jobs:
with:
go-version-file: 'go.mod'
cache: true
env:
working-directory: ./
- uses: hashicorp/setup-terraform@v2
with:
terraform_version: '1.2.*'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/integration-tests-branch-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
with:
go-version-file: 'go.mod'
cache: true
env:
working-directory: ./
- run: go mod download
- run: go build -v .

Expand Down Expand Up @@ -60,6 +62,9 @@ jobs:
with:
go-version-file: 'go.mod'
cache: true
env:
working-directory: ./

- uses: hashicorp/setup-terraform@v3
with:
terraform_version: ${{ matrix.terraform }}
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: stable
env:
working-directory: ./

- name: Install dependencies
run: go mod download
Expand All @@ -35,4 +37,6 @@ jobs:
uses: golangci/golangci-lint-action@v6
with:
version: v1.60
args: --timeout 5m
args: --timeout 5m
env:
working-directory: ./
2 changes: 2 additions & 0 deletions .github/workflows/terraform-provider-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
go-version-file: 'go.mod'
go-version: '1.22'
cache: true
env:
working-directory: ./
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v6
id: import_gpg
Expand Down

0 comments on commit 583185c

Please sign in to comment.