Skip to content

Merge pull request #58 from peter-szrnka/57-feature_request-update-do… #189

Merge pull request #58 from peter-szrnka/57-feature_request-update-do…

Merge pull request #58 from peter-szrnka/57-feature_request-update-do… #189

Workflow file for this run

name: Code coverage
on:
workflow_dispatch:
pull_request:
push:
paths:
- code/**
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Cache SonarCloud packages
uses: actions/cache@v3
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Sonarcloud scan
working-directory: ./code/
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: mvn clean -Pcodecov -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=peter-szrnka_firebase-hosting-api-java