Skip to content

Commit

Permalink
ci: Reusable workflow for DeltaSpike testing
Browse files Browse the repository at this point in the history
  • Loading branch information
ikysil committed Sep 20, 2024
1 parent def736f commit b18e60f
Showing 1 changed file with 69 additions and 0 deletions.
69 changes: 69 additions & 0 deletions .github/workflows/test-deltaspike.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Test - DeltaSpike

on:
workflow_dispatch:
inputs:
m2-cache-key:
required: true
type: string
m2-monthly-branch-cache-key:
required: false
type: string
m2-monthly-cache-key:
required: false
type: string

workflow_call:
inputs:
m2-cache-key:
required: true
type: string
m2-monthly-branch-cache-key:
required: false
type: string
m2-monthly-cache-key:
required: false
type: string

defaults:
run:
shell: bash

jobs:
test-deltaspike:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
# LTS versions
java: [11, 17, 21]

steps:
- uses: actions/checkout@v4

- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'

- name: Restore Maven Repository
uses: actions/cache/restore@v4
with:
enableCrossOsArchive: true
path: ~/.m2/repository
key: ${{ inputs.m2-cache-key }}
restore-keys: |
${{ inputs.m2-monthly-branch-cache-key }}-
${{ inputs.m2-monthly-cache-key }}-
- name: Test DeltaSpike
run: echo DEBUG ./ci-support/test-deltaspike.sh deltaspike-v2.x.sh

- name: Upload failure Archive (if maven failed)
uses: actions/upload-artifact@v4
if: failure()
with:
name: test-reports-jdk${{ matrix.java }}-deltaspike
path: '**/target/surefire-reports/**'

0 comments on commit b18e60f

Please sign in to comment.