doc: Adds documentation & examples for mongodbatlas_encryption_at_rest
singular data source
#6112
Workflow file for this run
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: 'Code Health' | |
# Set of validations run on each pull request and merged commits to master. | |
on: | |
push: | |
branches: | |
- master | |
paths-ignore: # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-excluding-paths | |
- '*.md' | |
- 'examples/**' | |
- 'LICENSE' | |
pull_request: {} | |
workflow_dispatch: {} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: {} | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 | |
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 | |
with: | |
go-version-file: 'go.mod' | |
- name: Build | |
run: make build | |
unit-test: | |
needs: build | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write # Needed by sticky-pull-request-comment | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 | |
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 | |
with: | |
go-version-file: 'go.mod' | |
- name: Unit Test | |
run: make test | |
lint: | |
runs-on: ubuntu-latest | |
permissions: {} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 | |
- name: Install Go | |
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 | |
with: | |
go-version-file: 'go.mod' | |
cache: false # see https://github.com/golangci/golangci-lint-action/issues/807 | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 | |
with: | |
version: v1.60.3 # Also update GOLANGCI_VERSION variable in GNUmakefile when updating this version | |
- name: actionlint | |
run: | | |
make tools | |
echo "::add-matcher::.github/actionlint-matcher.json" | |
actionlint -color | |
shell: bash | |
shellcheck: | |
runs-on: ubuntu-latest | |
permissions: {} | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 | |
- name: Run ShellCheck | |
uses: bewuethr/shellcheck-action@d01912909579c4b1a335828b8fca197fbb8e0aa4 | |
generate-doc-check: | |
runs-on: ubuntu-latest | |
permissions: {} | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 | |
- run: make tools # all resources with auto-generated doc must be specified below here | |
- name: Doc for control_plane_ip_addresses | |
run: make generate-doc resource_name=control_plane_ip_addresses | |
- name: Doc for push_based_log_export | |
run: make generate-doc resource_name=push_based_log_export | |
- name: Doc for search_deployment | |
run: make generate-doc resource_name=search_deployment | |
- name: Doc for encryption_at_rest | |
run: make generate-doc resource_name=encryption_at_rest | |
- name: Doc for encryption_at_rest_private_endpoint | |
run: make generate-doc resource_name=encryption_at_rest_private_endpoint | |
- name: Find mutations | |
id: self_mutation | |
run: |- | |
git add . | |
git diff --staged --patch --exit-code > .repo.patch || echo "self_mutation_happened=true" >> "${GITHUB_OUTPUT}" | |
- name: Fail build on mutation | |
if: steps.self_mutation.outputs.self_mutation_happened | |
run: |- | |
echo "::error::Files were changed during build (see build log). If this was triggered from a fork, you will need to update your branch." | |
cat .repo.patch | |
exit 1 | |
call-acceptance-tests-workflow: | |
needs: [build, lint, shellcheck, unit-test, generate-doc-check] | |
secrets: inherit | |
uses: ./.github/workflows/acceptance-tests.yml |