Skip to content

Merge pull request #59 from mareknovotny/main #10

Merge pull request #59 from mareknovotny/main

Merge pull request #59 from mareknovotny/main #10

on:
push:
branches:
- main
name: coverage report
jobs:
test-coverage:
name: Publish coverage report
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup sonarqube
uses: warchant/setup-sonar-scanner@v8
- name: coverage report
uses: actions/setup-node@v4
with:
node-version: 20
- run: yarn install --frozen-lockfile
- run: npm run test:report
- run: sonar-scanner
-Dsonar.organization=kiegroup
-Dsonar.projectKey=chain-status
-Dsonar.projectName="Chain Status"
-Dsonar.sources=$GITHUB_WORKSPACE
-Dsonar.host.url=${{ secrets.SONAR_URL }}
-Dsonar.login=${{ secrets.SONAR_TOKEN }}
-Dsonar.tests=test
-Dsonar.testExecutionReportPaths=packages/action/test-report.xml
-Dsonar.javascript.lcov.reportPaths=coverage/lcov.info
-Dsonar.exclusions=packages/action/test/**,packages/action/webpage/**
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}