Skip to content

Scraper for RSD aggregator #419

Scraper for RSD aggregator

Scraper for RSD aggregator #419

Workflow file for this run

# SPDX-FileCopyrightText: 2023 - 2024 Ewan Cahen (Netherlands eScience Center) <[email protected]>
# SPDX-FileCopyrightText: 2023 - 2024 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/sonarcloud-github-action@master
with:
projectBaseDir: database
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}