-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
49 changed files
with
1,650 additions
and
737 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
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
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
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
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 |
---|---|---|
|
@@ -13,7 +13,7 @@ BINARY_NAME=terraform-provider-corefunc | |
#------------------------------------------------------------------------------- | ||
# Global stuff. | ||
|
||
HOMEBREW_PACKAGES=bash bats-core coreutils editorconfig-checker findutils git git-cliff git-lfs go grep jq librsvg nodejs pre-commit [email protected] shellcheck tfschema trivy trufflesecurity/trufflehog/trufflehog | ||
HOMEBREW_PACKAGES=bash bats-core coreutils editorconfig-checker findutils git git-cliff git-lfs go grep jq librsvg nodejs poetry pre-commit [email protected] shellcheck tfschema trivy trufflesecurity/trufflehog/trufflehog | ||
NEXT_VERSION ?= $(shell git cliff --bump --unreleased --context | jq -r .[0].version) | ||
|
||
#------------------------------------------------------------------------------- | ||
|
@@ -25,6 +25,7 @@ install-tools-go: | |
@ $(HEADER) "=====> Installing Go packages..." | ||
$(GO) install github.com/antham/gommit@latest | ||
$(GO) install github.com/charmbracelet/gum@latest | ||
$(GO) install github.com/evilmartians/lefthook@latest | ||
$(GO) install github.com/google/osv-scanner/cmd/osv-scanner@v1 | ||
$(GO) install github.com/goph/licensei/cmd/licensei@latest | ||
$(GO) install github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs@latest | ||
|
@@ -42,6 +43,7 @@ install-tools-go: | |
$(GO) install golang.org/x/tools/cmd/godoc@latest | ||
$(GO) install golang.org/x/vuln/cmd/govulncheck@latest | ||
$(GO) install gotest.tools/gotestsum@latest | ||
$(GO) install mvdan.cc/gofumpt@latest | ||
|
||
.PHONY: install-tools-mac | ||
## install-tools-mac: [tools]* Install/upgrade the required tools for macOS, including Go packages. | ||
|
@@ -142,12 +144,8 @@ docs-provider: clean-ds | |
find docs/ -type f -name "*.md" | xargs -I% sed -i 's|<!-- variadic argument generated by tfplugindocs -->||g' "%" | ||
|
||
@ echo " " | ||
# Will probably fail. | ||
- pre-commit run --all-files markdownlint | ||
|
||
@ echo " " | ||
# Will probably succeed. If not, there's a bigger issue. | ||
pre-commit run --all-files markdownlint | ||
# If this fails, there's a bigger issue. | ||
lefthook run pre-commit --commands markdownlint | ||
|
||
.PHONY: docs-cli | ||
## docs-cli: [docs] Preview the Go library documentation on the CLI. | ||
|
@@ -230,9 +228,10 @@ list-tests: | |
|
||
.PHONY: bats | ||
## bats: [test] Tests the output of the provider using tfschema and BATS. | ||
bats: build | ||
bats: build clean | ||
@ $(HEADER) "=====> Running BATS/tfschema tests..." | ||
cd ./bats && terraform init && bats * | ||
@ # cd ./bats && terraform init && bats *.bats.sh | ||
cd ./bats && bats *.bats.sh | ||
|
||
.PHONY: acc | ||
## acc: [test] Runs Terraform provider acceptance tests. Set NAME= (without 'TestAcc') to run a specific test by name. | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.