Skip to content

FBHAJ-54 Test and code quality improvements #179

FBHAJ-54 Test and code quality improvements

FBHAJ-54 Test and code quality improvements #179

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