Skip to content

optimize k8s-deployment #1577

optimize k8s-deployment

optimize k8s-deployment #1577

Workflow file for this run

name: SonarScan
on:
push:
pull_request:
types: [opened, synchronize, reopened]
env:
GOLANG_PROTOBUF_REGISTRATION_CONFLICT: ignore
jobs:
sonarcloud-backend:
name: SonarCloud Backend
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run golang tests
run: |
cd backend
go test -json ./... > report.json
go test -coverprofile=coverage.out ./...
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
with:
projectBaseDir: backend
args: >-
-X
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN_BACKEND }}
sonarcloud-frontend:
name: SonarCloud Frontend
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
with:
projectBaseDir: frontend
args: >-
-X
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN_FRONTEND }}