diff --git a/.github/workflows/angular_build.yml b/.github/workflows/angular_build.yml index 872ff109a7..e79abd393b 100644 --- a/.github/workflows/angular_build.yml +++ b/.github/workflows/angular_build.yml @@ -20,18 +20,18 @@ jobs: working-directory: ./matchbox-frontend steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: # https://github.com/actions/setup-node - node-version: 18 + node-version: 20 cache: npm cache-dependency-path: matchbox-frontend/package-lock.json - name: Setup Java - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 # https://github.com/actions/setup-java#usage with: java-version: 21 @@ -40,7 +40,7 @@ jobs: - name: Set up Maven uses: stCarolas/setup-maven@v5 with: - maven-version: 3.9.6 + maven-version: 3.9.9 - name: Update the project version shell: bash @@ -65,7 +65,7 @@ jobs: - name: Commit if: success() - uses: stefanzweifel/git-auto-commit-action@v4 + uses: stefanzweifel/git-auto-commit-action@v5 with: commit_message: "server: rebuild the Angular GUI resources" file_pattern: "matchbox-server/src/main/resources/static" diff --git a/.github/workflows/angular_test.yml b/.github/workflows/angular_test.yml index 456bdb4e51..fc89328bd0 100644 --- a/.github/workflows/angular_test.yml +++ b/.github/workflows/angular_test.yml @@ -13,13 +13,13 @@ jobs: working-directory: ./matchbox-frontend steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: # https://github.com/actions/setup-node - node-version: 18 + node-version: 20 cache: npm cache-dependency-path: matchbox-frontend/package-lock.json diff --git a/.github/workflows/central_repository.yml b/.github/workflows/central_repository.yml index 68364ede71..2ceb49976d 100644 --- a/.github/workflows/central_repository.yml +++ b/.github/workflows/central_repository.yml @@ -13,22 +13,12 @@ jobs: steps: - name: Checkout the repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - - name: Setup Java - uses: actions/setup-java@v3 - with: - java-version: 21 - distribution: adopt - cache: maven - - - name: Build with Maven - run: mvn package --batch-mode --no-transfer-progress --file pom.xml --projects :matchbox,:matchbox-engine -DskipTests -P release - - - name: Setup Java 17 - uses: actions/setup-java@v3 + - name: Setup Java 21 + uses: actions/setup-java@v4 with: # running setup-java again overwrites the settings.xml - java-version: "17" + java-version: "21" distribution: "adopt" cache: maven server-id: ossrh @@ -37,6 +27,9 @@ jobs: gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} gpg-passphrase: MAVEN_GPG_PASSPHRASE + - name: Build with Maven + run: mvn package --batch-mode --no-transfer-progress --file pom.xml --projects :matchbox,:matchbox-engine -DskipTests -P release + - name: Publish to Apache Maven Central run: mvn deploy -P release --file pom.xml --projects :matchbox,:matchbox-engine -DskipTests env: diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 5fe071adf7..5d854b1921 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -11,10 +11,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout master - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Python 3 - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.x' cache: 'pip' @@ -28,7 +28,7 @@ jobs: # https://www.mkdocs.org/user-guide/deploying-your-docs/#github-pages - name: Setup Java - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 # https://github.com/actions/setup-java#usage with: java-version: 21 @@ -39,7 +39,7 @@ jobs: run: mvn --batch-mode --no-transfer-progress javadoc:aggregate -f pom.xml - name: Publish Javadoc - uses: JamesIves/github-pages-deploy-action@v4.4.1 + uses: JamesIves/github-pages-deploy-action@v4 # https://github.com/JamesIves/github-pages-deploy-action#configuration- with: branch: gh-pages # The destination branch. diff --git a/.github/workflows/googleregistry.yml b/.github/workflows/googleregistry.yml index cdc6bfd299..158ee50feb 100644 --- a/.github/workflows/googleregistry.yml +++ b/.github/workflows/googleregistry.yml @@ -25,10 +25,10 @@ jobs: steps: - name: Checkout - uses: actions/checkout@main + uses: actions/checkout@v4 - name: Build Java - uses: actions/setup-java@main + uses: actions/setup-java@v4 with: java-version: 21 distribution: adopt @@ -45,7 +45,7 @@ jobs: # Configure Workload Identity Federation and generate an access token. - id: "auth" name: "Authenticate to Google Cloud" - uses: "google-github-actions/auth@v1" + uses: google-github-actions/auth@v2 with: token_format: "access_token" workload_identity_provider: "projects/1022310475153/locations/global/workloadIdentityPools/github-wif-pool/providers/oidc-github-provider" @@ -112,4 +112,4 @@ jobs: content: | failure ${{ env.REPOSITORY }}/${{ env.IMAGE }}:${{ github.ref_name }} - see https://github.com/ahdis/matchbox/actions/runs/${{ github.run_id }} \ No newline at end of file + see https://github.com/ahdis/matchbox/actions/runs/${{ github.run_id }} diff --git a/.github/workflows/integration_tests.yml b/.github/workflows/integration_tests.yml index a978815415..c559685d67 100644 --- a/.github/workflows/integration_tests.yml +++ b/.github/workflows/integration_tests.yml @@ -13,18 +13,18 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout matchbox - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: matchbox - name: Checkout integration tests - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: matchbox-int-tests repository: ahdis/matchbox-int-tests - name: Setup Java 21 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 # https://github.com/actions/setup-java#usage with: java-version: 21 @@ -56,4 +56,10 @@ jobs: with: name: testresults path: ./matchbox-int-tests/target/site - retention-days: 2 \ No newline at end of file + retention-days: 2 + + - name: Test Summary + uses: test-summary/action@v2 + with: + paths: "./matchbox-int-tests/target//surefire-reports/TEST-*.xml" + if: always() diff --git a/.github/workflows/javadoc_test.yml b/.github/workflows/javadoc_test.yml index 80433cadb3..1b7229d541 100644 --- a/.github/workflows/javadoc_test.yml +++ b/.github/workflows/javadoc_test.yml @@ -11,10 +11,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout the project - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Java - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 # https://github.com/actions/setup-java#usage with: java-version: 21 diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 4fbfc4d545..b5df461f11 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -11,10 +11,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout the project - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Java - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 # https://github.com/actions/setup-java#usage with: java-version: 21 @@ -35,4 +35,12 @@ jobs: path: | ./matchbox-server/target/surefire-reports ./matchbox-engine/target/surefire-reports - retention-days: 2 \ No newline at end of file + retention-days: 2 + + - name: Test Summary + uses: test-summary/action@v2 + with: + paths: | + matchbox-engine/target/surefire-reports/TEST-*.xml + matchbox-server/target/surefire-reports/TEST-*.xml + if: always() diff --git a/.github/workflows/security.yml b/.github/workflows/security.yml index 37bdfd8ec1..11d44584fd 100644 --- a/.github/workflows/security.yml +++ b/.github/workflows/security.yml @@ -28,10 +28,10 @@ jobs: steps: - name: Checkout the repository - uses: actions/checkout@main + uses: actions/checkout@v4 - - name: Setup Java 20 - uses: actions/setup-java@main + - name: Setup Java 21 + uses: actions/setup-java@v4 with: java-version: 21 distribution: adopt