Merge pull request #111 from bassages/dependabot/gradle/org.springfra… #237
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |