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

github-actions
2024-10-04 f7b58435a54ba2c1d4dce51e5abd9e0fb9f61603
.github/workflows/test.yml
@@ -3,6 +3,8 @@
name: Test
permissions: {}
jobs:
  build:
    name: Build
@@ -10,14 +12,14 @@
    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
@@ -36,7 +38,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
@@ -55,11 +57,11 @@
    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