mirror of https://github.com/jacekkow/keycloak-protocol-cas

Jacek Kowalski
7 days ago d473ba5989dc1c6d2677388ba3b592fbaa5751f0
.github/workflows/test.yml
@@ -1,5 +1,15 @@
on:
  pull_request:
  workflow_call:
    outputs:
      artifact_id:
        value: ${{ jobs.build.outputs.artifact_id }}
      keycloak_version:
        value: ${{ jobs.build.outputs.keycloak_version }}
      project_name:
        value: ${{ jobs.build.outputs.project_name }}
      project_version:
        value: ${{ jobs.build.outputs.project_version }}
name: Test
@@ -12,11 +22,11 @@
    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: 17
@@ -38,7 +48,7 @@
          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
@@ -57,11 +67,11 @@
    steps:
      - id: checkout
        name: Checkout code
        uses: actions/checkout@v3
        uses: actions/checkout@v4
      - id: download_artifact
        name: Download artifact
        uses: actions/download-artifact@v3
        uses: actions/download-artifact@v4
        with:
          name: jar