Skip to content

Commit

Permalink
Merge pull request #11 from geekcell/update-templates
Browse files Browse the repository at this point in the history
docs: update templates
  • Loading branch information
Ic3w0lf authored Jun 28, 2023
2 parents e45916d + 3837699 commit bd4c475
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 15 deletions.
4 changes: 4 additions & 0 deletions .github/.templatesyncignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
32 changes: 32 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 0 additions & 4 deletions .github/pull_request-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@

...

## How this PR fixes it

...

## Readiness Checklist

### Author/Contributor
Expand Down
42 changes: 33 additions & 9 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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
6 changes: 4 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit bd4c475

Please sign in to comment.