Develop/google optional organisation #216
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: Build and Test | |
on: | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Calculate version | |
id: spell | |
uses: actoaps/version-spell@v5 | |
- name: Setup JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
cache: gradle | |
- name: Gradle Build | |
run: | | |
./gradlew clean build sonar -Dsonar.host.url=$SONAR_HOST -Dsonar.login=$SONAR_LOGIN -DversionOverride=$BUILD_ID | |
env: | |
SONAR_HOST: ${{ secrets.SONAR_HOST }} | |
SONAR_LOGIN: ${{ secrets.SONAR_LOGIN }} | |
BUILD_ID: ${{ steps.spell.outputs.version }} |