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
15 changes: 0 additions & 15 deletions .github/workflows/actionlint.yml

This file was deleted.

19 changes: 0 additions & 19 deletions .github/workflows/golangci-lint.yml

This file was deleted.

84 changes: 84 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
name: Lint

permissions:
contents: read
checks: write
pull-requests: read

on:
pull_request:
merge_group:

jobs:
terrafmt:
name: terrafmt
runs-on: ubuntu-latest
steps:
# Checkout should always be before setup-go to ensure caching is working
- uses: actions/checkout@v5
- uses: actions/setup-go@v6
with:
go-version: stable
- name: Run terrafmt on documentation
run: go tool terrafmt fmt --verbose --check ./docs

spelling:
name: Spell Check with Typos
runs-on: ubuntu-latest
steps:
- name: Checkout Actions Repository
uses: actions/checkout@v4
- name: Spell Check Repo
uses: crate-ci/[email protected]
env:
CLICOLOR: 1

tfproviderlint:
name: tfproviderlint
runs-on: ubuntu-latest
steps:
# Checkout should always be before setup-go to ensure caching is working
- uses: actions/checkout@v5
- uses: actions/setup-go@v6
with:
go-version: stable
- name: Install tfproviderlint
run: go install github.com/bflad/tfproviderlint/cmd/tfproviderlint
- name: Run tfproviderlint
run: make tfproviderlint
- name: Run tfproviderlintx
run: make tfproviderlintx

tfproviderdocs:
name: tfproviderdocs
runs-on: ubuntu-latest
steps:
# Checkout should always be before setup-go to ensure caching is working
- uses: actions/checkout@v5
- uses: actions/setup-go@v6
with:
go-version: stable
- uses: hashicorp/setup-terraform@v3
- run: go install github.com/bflad/tfproviderdocs@latest
- run: make tfproviderdocs

actionlint:
name: actionlint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Check workflow files
uses: docker://rhysd/actionlint:latest
with:
args: -color -ignore SC2086

golangci:
name: golangci-lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: golangci-lint
uses: golangci/[email protected]
with:
version: v2.5.0
args: --timeout 5m
19 changes: 0 additions & 19 deletions .github/workflows/spelling.yml

This file was deleted.

21 changes: 0 additions & 21 deletions .github/workflows/terrafmt.yml

This file was deleted.

36 changes: 0 additions & 36 deletions .github/workflows/tfproviderlint.yml

This file was deleted.

Loading