Skip to content

Global notifications #44

Global notifications

Global notifications #44

Workflow file for this run

# SPDX-FileCopyrightText: 2023 Ewan Cahen (Netherlands eScience Center) <[email protected]>
# SPDX-FileCopyrightText: 2023 Netherlands eScience Center
#
# SPDX-License-Identifier: Apache-2.0
name: database scan
on:
workflow_dispatch:
push:
branches:
- main
paths:
- "database/**"
pull_request:
paths:
- "database/**"
jobs:
build:
name: Build and analyse with SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Cache SonarCloud packages
uses: actions/cache@v3
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: SonarCloud Scan database
uses: sonarsource/sonarcloud-github-action@master
with:
projectBaseDir: database
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}