-
Notifications
You must be signed in to change notification settings - Fork 4
61 lines (50 loc) · 1.46 KB
/
lint-job.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Lint Job
on:
workflow_dispatch: {}
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
jobs:
yamllint-job:
if: ${{ !github.event.pull_request.draft }}
runs-on: ubuntu-latest
container:
image: python:3.12.3-alpine3.18
steps:
- name: Checkout the Repository
uses: actions/[email protected]
- name: Install YAML Lint
run: pip3 install yamllint
- name: Run yamllint
run: yamllint -c .github/linters/yamllint.yaml .
yaml-schema-job:
if: ${{ !github.event.pull_request.draft }}
runs-on: ubuntu-latest
steps:
- name: Checkout the Repository
uses: actions/[email protected]
- name: Run checker script
run: bash scripts/yaml-check-schema.sh
terraform-lint-job:
if: ${{ !github.event.pull_request.draft }}
runs-on: ubuntu-latest
steps:
- name: Checkout the Repository
uses: actions/[email protected]
- name: Install terraform
uses: hashicorp/[email protected]
- name: Run checker script
run: bash scripts/terraform-lint.sh
flux-branch-job:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- name: Checkout the Repository
uses: actions/[email protected]
- name: Run checker script
run: bash scripts/flux-check-branch.sh