diff --git a/.github/workflows/avm-makefile.yaml b/.github/workflows/avm-makefile.yaml new file mode 100644 index 0000000..ef16138 --- /dev/null +++ b/.github/workflows/avm-makefile.yaml @@ -0,0 +1,18 @@ +name: AVM makefile + +on: + pull_request: + branches: + - main + workflow_dispatch: + + +jobs: + makefile: + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2 + - name: makefile + run: | + make -f avmmakefile help diff --git a/avmmakefile b/avmmakefile index 99b0983..bb6b92a 100644 --- a/avmmakefile +++ b/avmmakefile @@ -1,5 +1,9 @@ REMOTE_SCRIPT := https://raw.githubusercontent.com/Azure/tfmod-scaffold/main/avm_scripts$(AVMSCRIPT_VERSION) +.PHONY: help +help: + @echo "please use 'make '" + .PHONY: conftest conftest: curl -H 'Cache-Control: no-cache, no-store' -sSL "$(REMOTE_SCRIPT)/conftest.sh" | bash @@ -66,11 +70,11 @@ pr-check: fmtcheck docscheck tfvalidatecheck lint unit-test integration-test .PHONY: unit-test unit-test: - curl -H 'Cache-Control: no-cache, no-store' -sSL "$(REMOTE_SCRIPT)/run-terraform-test.sh" | bash -s -- unit + curl -H 'Cache-Control: no-cache, no-store' -sSL "$(REMOTE_SCRIPT)/run-terraform-test.sh" | bash -s -- unit .PHONY: integration-test integration-test: - curl -H 'Cache-Control: no-cache, no-store' -sSL "$(REMOTE_SCRIPT)/run-terraform-test.sh" | bash -s -- integration + curl -H 'Cache-Control: no-cache, no-store' -sSL "$(REMOTE_SCRIPT)/run-terraform-test.sh" | bash -s -- integration .PHONY: test-example test-example: