Merge pull request #8 from geekcell/feat/terraform-tests #40
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
--- | |
################## | |
## Run validate ## | |
################## | |
# | |
# Documentation: | |
# https://help.github.com/en/articles/workflow-syntax-for-github-actions | |
# | |
name: Validate | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
########################## | |
# Prevent duplicate jobs # | |
########################## | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
############### | |
# Run the job # | |
############### | |
jobs: | |
############### | |
# TF validate # | |
############### | |
tf-validate: | |
name: Validate | |
runs-on: ubuntu-latest | |
steps: | |
############################ | |
# Checkout the source code # | |
############################ | |
- name: Checkout Code | |
uses: actions/[email protected] | |
########################## | |
# Run Terraform validate # | |
########################## | |
- name: Terraform validate | |
uses: dflook/[email protected] |