ci: add pre-commit, k8s and tflint action workflows
This commit is contained in:
parent
ce8747472c
commit
399dd397bb
5 changed files with 45 additions and 14 deletions
40
.forgejo/workflows/ci.yaml
Normal file
40
.forgejo/workflows/ci.yaml
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
---
|
||||
name: checks
|
||||
on: # yamllint disable-line rule:truthy
|
||||
- 'push'
|
||||
|
||||
jobs:
|
||||
pre-commit:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: https://code.forgejo.org/actions/checkout@v4
|
||||
- uses: https://code.forgejo.org/actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.10'
|
||||
- uses: opentofu/setup-opentofu@v1
|
||||
with:
|
||||
tofu_version: 1.7.0
|
||||
- uses: pre-commit/action@v3.0.1
|
||||
|
||||
k8s:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: https://code.forgejo.org/actions/checkout@v4
|
||||
- name: Set up Kubeconform
|
||||
uses: bmuschko/setup-kubeconform@v1
|
||||
|
||||
- name: Validate manifests
|
||||
run: make lint--kubeconform
|
||||
|
||||
|
||||
tflint:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: https://code.forgejo.org/actions/checkout@v4
|
||||
- uses: terraform-linters/setup-tflint@v4
|
||||
name: Setup TFLint
|
||||
with:
|
||||
tflint_version: v0.50.3
|
||||
|
||||
- name: Run TFLint
|
||||
run: make lint--tflint
|
||||
Loading…
Add table
Add a link
Reference in a new issue