chore(deps): bump org.codehaus.groovy:groovy from 3.0.19 to 3.0.21 (#93) #168
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 | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 17 | |
distribution: 'temurin' | |
cache: 'maven' | |
- name: Build and test | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
SONAR_TOKEN: ${{secrets.SONAR_TOKEN}} | |
run: ./mvnw -B clean install && ./mvnw -f bonita-connector-sap/pom.xml verify | |
- name: Check whether SONAR_TOKEN is set | |
id: is-sonar-set | |
env: | |
SONAR_IS_SET: ${{ secrets.SONAR_TOKEN }} | |
run: | | |
echo "Is Sonar Set: ${{ env.SONAR_IS_SET != '' }}" | |
echo "sonar-enable=${{ env.SONAR_IS_SET != '' }}" >> $GITHUB_OUTPUT | |
- name: Run Sonar | |
if: ${{ steps.is-sonar-set.outputs.sonar-enable == 'true' }} | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
SONAR_TOKEN: ${{secrets.SONAR_TOKEN}} | |
run: ./mvnw -B -f bonita-connector-sap/pom.xml sonar:sonar -Dsonar.login=${{ secrets.SONAR_TOKEN }} | |
- run: mkdir staging && cp bonita-connector-sap/target/*.zip staging | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Connectors | |
path: staging |