From 0d2c108e445a8f15b8f0dd92379e25eab08360db Mon Sep 17 00:00:00 2001 From: Yanick Minder Date: Mon, 25 Nov 2024 16:04:47 +0100 Subject: [PATCH] update workflow --- .github/workflows/test-action.yml | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/.github/workflows/test-action.yml b/.github/workflows/test-action.yml index f6a463b393..a877d414a8 100644 --- a/.github/workflows/test-action.yml +++ b/.github/workflows/test-action.yml @@ -1,19 +1,18 @@ name: 'Show Variables' on: - workflow_dispatch: + push: jobs: - display-variables: - name: Show GitHub Variables - steps: - - name: Try to show GitHub Variables - run: | - echo "repository variable : ${{ vars.REPOSITORY_VAR }}" - echo "organization variable : ${{ vars.ORGANIZATION_VAR }}" - echo "overridden variable : ${{ vars.OVERRIDE_VAR }}" - echo "variable from shell environment : $env_var" - echo "IMAGE_TAG : $vars.ENV_CONTEXT_VAR" - echo "IMAGE_TAG : $IMAGE_TAG" - echo "QUAY_URL : $QUAY_URL" + sonarqube: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up JDK 21 + uses: actions/setup-java@v4 + with: + java-version: ${{ vars.JAVA_VERSION }} + distribution: 'temurin' + - name: Build and analyze + run: mvn clean verify sonar:sonar -Dsonar.login=${{ secrets.SONAR_TOKEN }}