mirror of
https://github.com/vcscsvcscs/OCI-Kubernetes-cluster-with-traefik.git
synced 2025-08-12 13:59:09 +02:00
40 lines
821 B
YAML
40 lines
821 B
YAML
name: Terraform CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
tags:
|
|
- v*
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
validate:
|
|
name: Validate
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: ./example
|
|
steps:
|
|
- name: Check out code
|
|
uses: actions/checkout@v1
|
|
|
|
- name: Run a Terraform init
|
|
uses: docker://hashicorp/terraform:light
|
|
with:
|
|
entrypoint: terraform
|
|
args: init
|
|
|
|
- name: Run a Terraform validate
|
|
uses: docker://hashicorp/terraform:light
|
|
with:
|
|
entrypoint: terraform
|
|
args: validate
|
|
|
|
- name: Run a Terraform fmt
|
|
uses: docker://hashicorp/terraform:light
|
|
with:
|
|
entrypoint: terraform
|
|
args: fmt --recursive -check=true --diff ../ |