-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NACT-427 Errors when reading incarnations are ignored (#5)
Co-authored-by: Matthieu Mottet <[email protected]>
- Loading branch information
1 parent
4a1cbc8
commit c5f4c8e
Showing
11 changed files
with
235 additions
and
263 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ on: | |
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
# Ensure project builds before running testing matrix | ||
build: | ||
|
@@ -23,12 +23,12 @@ jobs: | |
with: | ||
go-version-file: 'go.mod' | ||
cache: true | ||
- run: go mod download | ||
- run: go build -v . | ||
- run: go mod tidy | ||
- name: Run linters | ||
uses: golangci/golangci-lint-action@639cd343e1d3b897ff35927a75193d57cfcba299 # v3.6.0 | ||
uses: golangci/golangci-lint-action@v6 # v3.6.0 | ||
with: | ||
version: latest | ||
- run: go build . | ||
|
||
generate: | ||
name: Generate | ||
|
@@ -39,13 +39,14 @@ jobs: | |
with: | ||
go-version-file: 'go.mod' | ||
cache: true | ||
- run: go get github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs | ||
- run: go install go.uber.org/mock/mockgen@latest | ||
- run: go install github.com/deepmap/oapi-codegen/cmd/oapi-codegen@latest | ||
- run: go get github.com/hashicorp/terraform-plugin-docs/cmd/[email protected] | ||
- run: go install go.uber.org/mock/[email protected] | ||
- run: go install github.com/deepmap/oapi-codegen/cmd/[email protected] | ||
- run: go get go.uber.org/mock/mockgen/[email protected] | ||
- run: go generate ./... | ||
- name: git diff | ||
run: | | ||
git diff --compact-summary --exit-code || \ | ||
git diff --compact-summary --exit-code -- . ':(exclude)go.*' || \ | ||
(echo; echo "Unexpected difference in directories after code generation. Run 'go generate ./...' command and commit."; exit 1) | ||
# Run tests in a matrix with Terraform CLI versions | ||
|
@@ -64,6 +65,11 @@ jobs: | |
- '1.2.*' | ||
- '1.3.*' | ||
- '1.4.*' | ||
- '1.5.*' | ||
- '1.6.*' | ||
- '1.7.*' | ||
- '1.8.*' | ||
- '1.9.*' | ||
steps: | ||
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 | ||
- uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,4 +28,4 @@ linters: | |
- unconvert | ||
- unparam | ||
- unused | ||
- vet | ||
- vet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.