Skip to content

release packages

release packages #3

Workflow file for this run

name: SonarQube
on:
push:
branches:
- master
pull_request:
types:
- opened
- reopened
- synchronize
env:
VERSION: 'master'
jobs:
SonarQube:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- run: echo "VERSION=pr#${{ github.event.number }}" >> $GITHUB_ENV
if: github.event.number
- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@master
env:
SONAR_HOST_URL: ${{ secrets.ANALYSIS_SERVER }}
with:
args: >
-Dsonar.login=${{ secrets.ANALYSIS_LOGIN }}
-Dsonar.password=${{ secrets.ANALYSIS_PASSWORD }}
-Dsonar.sources=packages
-Dsonar.inclusions=**/src/*.ts
-Dsonar.tests=packages
-Dsonar.test.inclusions=**/__tests__/*.js
-Dsonar.projectKey=secux-js
-Dsonar.projectVersion=${{ env.VERSION }}