This repository has been archived by the owner on Jan 2, 2024. It is now read-only.
Updated README.md #137
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: Run Gradle on Pushes on Main an Pull Requests | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
gradle: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: 17 | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
- name: Make gradlew executable | |
run: chmod +x ./gradlew | |
- name: Execute Gradle assemble | |
run: ./gradlew assemble --scan | |
- name: Execute Gradle check | |
run: ./gradlew check --scan | |
- name: Execute Gradle sonarqube | |
run: ./gradlew sonar -Dsonar.login=${{ secrets.SONAR_TOKEN }} --scan |