Skip to content

Added the automation code #1

Added the automation code

Added the automation code #1

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
validate-helm:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Helm
uses: azure/setup-helm@v1
with:
version: v3.8.0
- name: Validate Helm charts
run: |
helm lint helm-charts/redis
helm lint helm-charts/rollouts-demo
validate-yaml:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install yamllint
run: sudo apt-get install -y yamllint
- name: Validate YAML files
run: yamllint .
terraform-plan:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Terraform
uses: hashicorp/setup-terraform@v2
with:
terraform_version: 1.0.0
- name: Terraform Init
run: terraform init
- name: Terraform Validate
run: terraform validate
- name: Terraform Plan
run: terraform plan