Merge pull request #125 from BrewInteractive/dependabot/github_action… #717
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 analysis when pushing in master or pull requests, and when creating | |
# a pull request. | |
push: | |
branches: | |
- main | |
- "release/**" | |
pull_request: | |
types: [ opened, synchronize, reopened ] | |
name: Sonar Analyze | |
jobs: | |
analyze: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Maven Action | |
uses: s4u/[email protected] | |
with: | |
checkout-fetch-depth: 0 | |
java-version: 19 | |
maven-version: 3.9.0 | |
java-distribution: "temurin" | |
- name: Sonar Analyze | |
run: mvn verify sonar:sonar -Pcoverage | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |