Skip to content

Merge pull request #111 from bassages/dependabot/gradle/org.springfra… #237

Merge pull request #111 from bassages/dependabot/gradle/org.springfra…

Merge pull request #111 from bassages/dependabot/gradle/org.springfra… #237

Workflow file for this run

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]
name: Build home-sensors
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: 21
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Build with Gradle and start SonarQube analysis
run: ./gradlew build jacocoTestReport sonarqube
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}