-
Notifications
You must be signed in to change notification settings - Fork 71
50 lines (47 loc) · 1.48 KB
/
ci-validation.yml
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
name: CI validation tests
on:
pull_request:
branches:
- master
jobs:
validate_salt:
name: Validate Salt states
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: salt-common
version: 1.0
- name: Validate server states
if: always()
run: bash .github/workflows/ci-validation/salt-server-validation
- name: Validate client states
if: always()
run: bash .github/workflows/ci-validation/salt-client-validation
- name: Validate minion states
if: always()
run: bash .github/workflows/ci-validation/salt-minion-validation
- name: Validate controller states
if: always()
run: bash .github/workflows/ci-validation/salt-controller-validation
- name: Validate mirror states
if: always()
run: bash .github/workflows/ci-validation/salt-mirror-validation
- name: Validate containerized server states
if: always()
run: bash .github/workflows/ci-validation/salt-server-containerized-validation
validate_terraform_config:
name: Validate terraform configuration
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: hashicorp/setup-terraform@v3
with:
terraform_version: 1.0.10
- name: Validate configuration using example files
run: .github/workflows/ci-validation/terraform-validation