Skip to content

Commit

Permalink
SONAR-21408 run static test in PR
Browse files Browse the repository at this point in the history
  • Loading branch information
jCOTINEAU committed Jan 11, 2024
1 parent 18d5fb1 commit d95acc5
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
36 changes: 36 additions & 0 deletions .github/workflows/static-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ account:
currentAdminPassword: admin
adminPasswordSecretName: ""
securityContext:
runAsGroup: 1001
runAsGroup: "wrong"
runAsUser: 1001
resources:
limits:
Expand Down

0 comments on commit d95acc5

Please sign in to comment.