-
Notifications
You must be signed in to change notification settings - Fork 389
36 lines (35 loc) · 1.27 KB
/
static-test.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
on:
# Trigger analysis when pushing in master or pull requests, and when creating
# a pull request.
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
name: Main Workflow
jobs:
run-static-analysis-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
- uses: azure/setup-helm@v3
with:
version: latest # default is latest (stable)
token: ${{ secrets.GITHUB_TOKEN }} # only needed if version is 'latest'
id: install-helm
- name: Set up Kubeconform
uses: bmuschko/setup-kubeconform@v1
- name: run static compatibility test
run: |
helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo add bitnami-pre2022 https://raw.githubusercontent.com/bitnami/charts/pre-2022/bitnami
cd ${{ github.workspace }}/charts/sonarqube
helm dependency build
../../.cirrus/unit_helm_compatibility_test.sh
cd ${{ github.workspace }}/charts/sonarqube-dce
helm dependency build
../../.cirrus/unit_helm_compatibility_test.sh