Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- name: terraform fmt
- name: Setup terraform for linting examples
uses: hashicorp/setup-terraform@v3
- name: Lint examples
run: |
make tflint
make lint-examples
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ testacc:
golangcilint:
golangci-lint run

tflint:
lint-examples:
terraform fmt -write=false -check=true -diff=true examples/

lint: golangcilint tflint
lint: golangcilint lint-examples

clean:
rm -f terraform-provider-libvirt

cleanup:
./travis/cleanup.sh

.PHONY: build install test testacc tflint golangcilint lint terraform-provider-libvirt
.PHONY: build install test testacc golangcilint lint lint-examples terraform-provider-libvirt
Loading