This repository has been archived by the owner on Jul 5, 2024. It is now read-only.
Endrer byggscript #3999
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
name: Sonar | |
on: | |
push: | |
branches: | |
- main | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
jobs: | |
bygg: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Sjekk ut kode | |
uses: actions/checkout@v3 | |
- name: Sett opp Java 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 17 | |
distribution: temurin | |
cache: maven | |
- name: Analyser | |
run: | | |
./mvnw versions:set -DnewVersion=${TAG} | |
./mvnw --settings .github/.m2/settings.xml verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.login=${SONAR_TOKEN} |