-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add initial pipeline performing validation on PRs
- Loading branch information
1 parent
e616bc9
commit 38dc955
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
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
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 |