Skip to content

Bump dependabot/fetch-metadata from 1.6.0 to 2.1.0 #27

Bump dependabot/fetch-metadata from 1.6.0 to 2.1.0

Bump dependabot/fetch-metadata from 1.6.0 to 2.1.0 #27

name: Run validation
on:
- push
jobs:
validation:
name: Run terraform validate
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Tofu
uses: opentofu/setup-opentofu@v1
- name: Cache terraform dir
uses: actions/cache@v4
with:
path: ~/.terraform
key: terraform-${{ hashFiles('versions.tf') }}
- name: Show version
run: tofu --version
- name: Run init
run: tofu init -upgrade
- name: Run validate
run: |
tofu fmt --check
tofu validate