986 reference papers #40
Workflow file for this run
This file contains 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: 2022 - 2023 Ewan Cahen (Netherlands eScience Center) <[email protected]> | |
# SPDX-FileCopyrightText: 2022 - 2023 Netherlands eScience Center | |
# SPDX-FileCopyrightText: 2022 Dusan Mijatovic (dv4all) | |
# SPDX-FileCopyrightText: 2022 dv4all | |
# | |
# SPDX-License-Identifier: Apache-2.0 | |
name: scrapers tests | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: | |
- "scrapers/**" | |
pull_request: | |
paths: | |
- "scrapers/**" | |
jobs: | |
scrapers-tests: | |
runs-on: ubuntu-22.04 | |
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: Cache Maven packages | |
uses: actions/cache@v3 | |
with: | |
path: ~/.m2 | |
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-m2 | |
- name: "Maven JUnit tests and JaCoCo test report" | |
working-directory: scrapers | |
run: | | |
JAVA_HOME=$JAVA_HOME_17_X64 mvn verify | |
- name: SonarCloud Scan scrapers | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
working-directory: scrapers | |
run: JAVA_HOME=$JAVA_HOME_17_X64 mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=nl.research-software:scrapers -Pcoverage |