Skip to content

Merge pull request #89 from bassages/dependabot/gradle/com.github.ben… #256

Merge pull request #89 from bassages/dependabot/gradle/com.github.ben…

Merge pull request #89 from bassages/dependabot/gradle/com.github.ben… #256

Workflow file for this run

name: Build home-server
on:
# Trigger Gradle build and Sonar analysis when pushing in main or pull requests, and when creating
# a pull request.
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Echo (debug) action details
uses: hmarr/debug-action@v2
- name: Checkout
uses: actions/checkout@v3
- name: Setup JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 19
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Build with Gradle and start SonarQube analysis
run: ./gradlew build jacocoTestReport sonarqube
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}