Skip to content

SonarQube Desktop .NET Analyze (Missing .NET dependency) #109

SonarQube Desktop .NET Analyze (Missing .NET dependency)

SonarQube Desktop .NET Analyze (Missing .NET dependency) #109

name: SonarQube Desktop .NET Analyze (Missing .NET dependency)
on:
workflow_dispatch:
pull_request:
types:
- synchronize
- opened
branches:
- master
paths:
- 'starskydesktop/**'
- '.github/workflows/desktop-electron-sonarqube-missing-net-dependency.yml'
push:
branches: [master]
paths:
- 'starsky/**'
schedule:
- cron: '36 0 * * 0,2,4,6'
env:
PR_NUMBER_GITHUB: ${{ github.event.pull_request.number }}
jobs:
build:
runs-on: ubuntu-latest
env:
WEBSITE_SITE_NAME: "ci"
steps:
- name: 'Checkout repository on branch: ${{ github.REF }}'
uses: actions/checkout@v4
with:
ref: ${{ github.HEAD_REF }}
- name: Retrieve entire repository history
run: |
git fetch --prune --unshallow
- name: Use Java 17
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
check-latest: true
java-package: jdk # (jre, jdk, or jdk+fx) - defaults to jdk
architecture: x64 # (x64 or x86) - defaults to x64
- name: Cache sonarqube packages (*nix)
uses: actions/cache@v4
with:
# nuget cache files are stored in `~/.sonar` on Linux/macOS
path: ~/.sonar
key: ${{ runner.os }}-build-desktop-sonarqube
restore-keys: |
${{ runner.os }}-build-desktop-sonarqube-
- name: NpmCi
working-directory: ./starskydesktop
run: npm ci
- name: Test
working-directory: ./starskydesktop
env:
STARSKY_SONAR_KEY: ${{ secrets.STARSKY_SONAR_KEY }}
STARSKY_SONAR_TOKEN: ${{ secrets.STARSKY_SONAR_TOKEN }}
STARSKY_SONAR_ORGANISATION: ${{ secrets.STARSKY_SONAR_ORGANISATION }}
STARSKY_SONAR_URL: ${{ secrets.STARSKY_SONAR_URL }}
run: npm run test:ci