Skip to content

Merge pull request #97 from serlo/feat/lti-integration-serlo-editor-t… #301

Merge pull request #97 from serlo/feat/lti-integration-serlo-editor-t…

Merge pull request #97 from serlo/feat/lti-integration-serlo-editor-t… #301

Workflow file for this run

name: Terraform GitHub Actions
on:
- push
jobs:
format:
name: fmt
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Terraform
uses: hashicorp/setup-terraform@v2
with:
terraform_version: ^1.0.0
- name: Terraform Format
run: terraform fmt -check -recursive
validate:
name: validate
runs-on: ubuntu-latest
strategy:
matrix:
module:
- envs/production
- envs/staging
- modules/api
- modules/cloudflare
- modules/dbdump
- modules/dbsetup
- modules/enmeshed
- modules/gcloud/cluster
- modules/gcloud/gcloud_dbdump_reader
- modules/gcloud/gcloud_dbdump_writer
- modules/gcloud/gcloud_mysql
- modules/gcloud/gcloud_postgres
- modules/hydra
- modules/ingress
- modules/ingress-nginx
- modules/kratos
- modules/mysql
- modules/notification-mail
- modules/postgres
- modules/redis
- modules/rocket-chat
- modules/tls-self-signed-cert
steps:
- uses: actions/checkout@v3
- name: Setup Terraform
uses: hashicorp/setup-terraform@v2
with:
terraform_version: ^1.0.0
- run: terraform init -backend=false
working-directory: ${{ matrix.module }}
- name: Create dummy secret files for envs module
if: ${{ matrix.module == 'envs/production' || matrix.module == 'envs/staging' }}
run: |
mkdir secrets
touch secrets/serlo-production-terraform-af6ce169abd8.json secrets/serlo-org-6bab84a1b1a5.json
touch secrets/serlo-staging-terraform-15240e38ec22.json
working-directory: ${{ matrix.module }}
- run: terraform validate
working-directory: ${{ matrix.module }}