Skip to content

Commit c01a14d

Browse files
authored
fix(ci): failing terraform fmt (#1158)
1 parent 96c1c24 commit c01a14d

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/test.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@ jobs:
2828
- uses: actions/checkout@v4
2929
with:
3030
fetch-depth: 2
31-
- name: terraform fmt
31+
- name: Setup terraform for linting examples
32+
uses: hashicorp/setup-terraform@v3
33+
- name: Lint examples
3234
run: |
33-
make tflint
35+
make lint-examples
3436
- name: golangci-lint
3537
uses: golangci/golangci-lint-action@v6
3638
with:

Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ testacc:
3838
golangcilint:
3939
golangci-lint run
4040

41-
tflint:
41+
lint-examples:
4242
terraform fmt -write=false -check=true -diff=true examples/
4343

44-
lint: golangcilint tflint
44+
lint: golangcilint lint-examples
4545

4646
clean:
4747
rm -f terraform-provider-libvirt
4848

4949
cleanup:
5050
./travis/cleanup.sh
5151

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

0 commit comments

Comments
 (0)