Skip to content

Upgrade to latest version #4

Upgrade to latest version

Upgrade to latest version #4

Workflow file for this run

name: "Test OE Mastodon AWS Pattern Terraform Module"
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: "15 10 * * 1"
env:
# verbosity setting for Terraform logs
TF_LOG: INFO
# Credentials for deployment to AWS
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
jobs:
terraform:
name: "Terraform Tests"
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: .
steps:
- name: Checkout the repository to the runner
uses: actions/checkout@v2
- name: Setup Terraform with specified version on the runner
uses: hashicorp/setup-terraform@v2
with:
terraform_version: 1.9.8
- name: Terraform init
id: init
run: terraform init
- name: Terraform format
id: fmt
run: terraform fmt -check
- name: Terraform validate
id: validate
run: terraform validate
- name: Terraform test
id: test
run: terraform test