Skip to content

Commit

Permalink
ci: add initial pipeline performing validation on PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
dsloanm authored and NucciTheBoss committed Nov 13, 2024
1 parent e616bc9 commit 38dc955
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Copyright 2024 Canonical Ltd.
# See LICENSE file for licensing details.

name: charmed-hpc-terraform tests
on:
workflow_call:
pull_request:

jobs:
inclusive-naming-check:
name: Inclusive naming check
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run tests
uses: get-woke/woke-action@v0
with:
fail-on-error: true

validation-test:
name: Validation tests
runs-on: ubuntu-24.04
needs:
- inclusive-naming-check
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo snap install --classic opentofu
sudo apt-get update
sudo apt-get install -y just
- name: Run tests
env:
TERM: xterm-256color
run: just check

0 comments on commit 38dc955

Please sign in to comment.