Merge pull request #1610 from research-software-directory/1561-postgr… #688
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SPDX-FileCopyrightText: 2023 - 2025 Ewan Cahen (Netherlands eScience Center) <[email protected]> | |
# SPDX-FileCopyrightText: 2023 - 2025 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@v4 | |
with: | |
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | |
- name: Cache SonarCloud packages | |
uses: actions/cache@v4 | |
with: | |
path: ~/.sonar/cache | |
key: ${{ runner.os }}-sonar | |
restore-keys: ${{ runner.os }}-sonar | |
- name: SonarCloud Scan database | |
uses: SonarSource/sonarqube-scan-action@v5 | |
with: | |
projectBaseDir: database | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |