fix(deps): update module github.com/hashicorp/terraform-plugin-docs to v0.20.1 #385
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build_and_test: | |
name: Build and Test | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
cache: true | |
go-version-file: go.mod | |
- name: Build | |
run: go build -v ./... | |
- name: Test | |
run: go test -v ./... | |
- name: Set up Terraform | |
uses: hashicorp/setup-terraform@v3 | |
with: | |
terraform_wrapper: false | |
- name: Generate docs | |
shell: bash | |
run: go generate ./... | |
- name: Check for documentation changes | |
shell: bash | |
run: | | |
result=0 | |
git diff --compact-summary --exit-code || result=$? | |
if [ ! "$result" -eq "0" ]; then | |
echo | |
echo "Unexpected difference in directories after code generation. Run 'go generate ./...' command and commit." | |
exit 1 | |
fi |