Skip to content

Add paygo images

Add paygo images #1304

Workflow file for this run

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: Add SaltStack repository
run: |
curl -fsSL https://repo.saltproject.io/py3/ubuntu/$(lsb_release -sr)/amd64/latest/SALTSTACK-GPG-KEY.pub | sudo gpg --dearmor -o /usr/share/keyrings/salt-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg] https://repo.saltproject.io/py3/ubuntu/$(lsb_release -sr)/amd64/latest $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/saltstack.list
sudo apt-get update
- name: Install Salt
run: sudo apt-get update && sudo apt-get install -y salt-common
- 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