| | |
| | | on: |
| | | pull_request: |
| | | workflow_call: |
| | | outputs: |
| | | artifact_id: |
| | | value: ${{ jobs.build.outputs.artifactId }} |
| | | keycloak_version: |
| | | value: ${{ jobs.build.outputs.keycloakVersion }} |
| | | project_name: |
| | | value: ${{ jobs.build.outputs.projectName }} |
| | | project_version: |
| | | value: ${{ jobs.build.outputs.projectVersion }} |
| | | |
| | | name: Test |
| | | |
| | | permissions: {} |
| | | |
| | | jobs: |
| | | build: |
| | |
| | | steps: |
| | | - id: checkout |
| | | name: Checkout code |
| | | uses: actions/checkout@v3 |
| | | uses: actions/checkout@v4 |
| | | |
| | | - id: java |
| | | name: Install Java and Maven |
| | | uses: actions/setup-java@v3 |
| | | uses: actions/setup-java@v4 |
| | | with: |
| | | distribution: zulu |
| | | java-version: 11 |
| | | java-version: 17 |
| | | |
| | | - id: vars |
| | | name: Get project variables |
| | |
| | | mvn -B test package |
| | | |
| | | - name: Upload artifact |
| | | uses: actions/upload-artifact@v3 |
| | | uses: actions/upload-artifact@v4 |
| | | with: |
| | | name: jar |
| | | path: target/${{ steps.vars.outputs.artifactId }}-${{ steps.vars.outputs.projectVersion }}.jar |
| | |
| | | steps: |
| | | - id: checkout |
| | | name: Checkout code |
| | | uses: actions/checkout@v2 |
| | | uses: actions/checkout@v4 |
| | | |
| | | - id: download_artifact |
| | | name: Download artifact |
| | | uses: actions/download-artifact@v3 |
| | | uses: actions/download-artifact@v4 |
| | | with: |
| | | name: jar |
| | | |