Skip to content

Commit

Permalink
fix: makefile and introduce test (#89)
Browse files Browse the repository at this point in the history
* fix: makefile and introduce test

* chore: change to tabs
  • Loading branch information
matt-FFFFFF authored Feb 27, 2025
1 parent ce13aa6 commit b606f54
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/avm-makefile.yaml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 6 additions & 2 deletions avmmakefile
Original file line number Diff line number Diff line change
@@ -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 <target>'"

.PHONY: conftest
conftest:
curl -H 'Cache-Control: no-cache, no-store' -sSL "$(REMOTE_SCRIPT)/conftest.sh" | bash
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit b606f54

Please sign in to comment.