Add in support for ca-west-1 #481
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
pre-commit-checks: | |
name: Pre-commit checks | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Terraform min/max versions | |
id: minMax | |
uses: clowdhaus/terraform-min-max@v1.0.4 | |
- name: Pre-commit Terraform ${{ steps.minMax.outputs.maxVersion }} | |
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.4.1 | |
with: | |
terraform-version: ${{ steps.minMax.outputs.maxVersion }} | |
terraform-docs-version: v0.16.0 | |
validate-examples: | |
name: Validate examples | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
working-directory: examples | |
steps: | |
- uses: hashicorp/setup-terraform@v1 | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Check examples | |
env: | |
EXAMPLES: simple external-bucket select-region organization/master organization/member | |
run: | | |
for EXAMPLE in ${EXAMPLES} | |
do | |
echo "Validating $EXAMPLE"... | |
cd $EXAMPLE && terraform init && terraform validate && cd - | |
done |