Skip to content

Commit

Permalink
chore: add tofu fmt and validate to CI (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
eliecharra authored Dec 20, 2024
1 parent f2eb56a commit 41ee616
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,24 @@ name: Build
on:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
ci:
lint:
runs-on: ubuntu-latest
name: CI 👷
name: Lint 👷
steps:
- name: Check out source code
uses: actions/checkout@main
uses: actions/checkout@v4

- name: Setup OpenTofu
uses: opentofu/setup-opentofu@main

- name: Initialize Tofu project
uses: opentofu/setup-opentofu@v1

- name: OpenTofu fmt
run: tofu fmt -recursive -diff -check
continue-on-error: true

- name: OpenTofu Init
id: init
run: tofu init

- name: OpenTofu Validate
run: tofu validate

0 comments on commit 41ee616

Please sign in to comment.