Skip to content

Worker unit tests, coverage and sonarqube #28

Worker unit tests, coverage and sonarqube

Worker unit tests, coverage and sonarqube #28

Workflow file for this run

name: Build and Test
on:
pull_request:
branches:
- develop
- main
push:
branches:
- develop
- main
jobs:
build-and-analyse:
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup JDK
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v3
- name: Build and Analyse
uses: gradle/gradle-build-action@v3
with:
arguments: build jacocoTestReport sonar
env:
GITHUB_USER: ${{ github.actor }}
GITHUB_TOKEN: ${{ github.token }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}