diff --git a/.github/.templatesyncignore b/.github/.templatesyncignore index e988577..775d81f 100644 --- a/.github/.templatesyncignore +++ b/.github/.templatesyncignore @@ -2,4 +2,8 @@ README.md .github/workflows/* .terraform-docs.yml docs/20-badges.md +docs/assets/logo.svg *.tf +test/* +go.mod +go.sum diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..33587ce --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,32 @@ +--- +############################## +## Dependabot configuration ## +############################## + +# +# Documentation: +# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuring-dependabot-version-updates +# + +version: 2 +updates: + # Maintain dependencies for GitHub Actions + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" + open-pull-requests-limit: 0 + + # Maintain dependencies for Terraform Providers + - package-ecosystem: "terraform" + directory: "/" + schedule: + interval: "daily" + open-pull-requests-limit: 0 + + # Maintain dependencies for Golang + - package-ecosystem: "gomod" + directory: "/" + schedule: + interval: "daily" + open-pull-requests-limit: 0 diff --git a/.github/pull_request-template.md b/.github/pull_request-template.md index 60761ad..3e2e50d 100644 --- a/.github/pull_request-template.md +++ b/.github/pull_request-template.md @@ -5,10 +5,6 @@ ... -## How this PR fixes it - -... - ## Readiness Checklist ### Author/Contributor diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 2ce9a59..2052ee1 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,24 +1,41 @@ -name: Test +--- +############### +## Run tests ## +############### + +# +# Documentation: +# https://help.github.com/en/articles/workflow-syntax-for-github-actions +# +name: Test on: pull_request: - workflow_dispatch: push: branches: [ main ] -permissions: - id-token: write - contents: read - +########################## +# Prevent duplicate jobs # +########################## concurrency: group: ${{ github.repository }} cancel-in-progress: false +permissions: + id-token: write + contents: read + +############### +# Run the job # +############### jobs: - test: - name: Terraform Tests + terratest: + name: Terratest runs-on: ubuntu-latest steps: + ############################ + # Checkout the source code # + ############################ - name: Checkout uses: actions/checkout@v3 @@ -32,11 +49,18 @@ jobs: aws-region: ${{ vars.AWS_TESTING_REGION }} mask-aws-account-id: false + ################ + # Setup Golang # + ################ - name: Set up Go uses: actions/setup-go@v4 with: go-version-file: 'go.mod' + ############# + # Run tests # + ############# - name: Run Tests + timeout-minutes: 30 working-directory: test - run: go test -v -timeout 30m + run: go test -v diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e7c9291..d96a421 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,16 +1,18 @@ repos: - repo: https://github.com/antonbabenko/pre-commit-terraform - rev: v1.76.0 + rev: v1.80.0 hooks: - id: terraform_docs - id: terraform_fmt - id: terraform_validate + args: + - --hook-config=--retry-once-with-cleanup=true exclude: '^[^/]+$' - id: terraform_tflint exclude: ^examples/ - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 + rev: v4.4.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer