Skip to content

Commit b18e60f

Browse files
committed
ci: Reusable workflow for DeltaSpike testing
1 parent def736f commit b18e60f

File tree

1 file changed

+69
-0
lines changed

1 file changed

+69
-0
lines changed
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: Test - DeltaSpike
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
m2-cache-key:
7+
required: true
8+
type: string
9+
m2-monthly-branch-cache-key:
10+
required: false
11+
type: string
12+
m2-monthly-cache-key:
13+
required: false
14+
type: string
15+
16+
workflow_call:
17+
inputs:
18+
m2-cache-key:
19+
required: true
20+
type: string
21+
m2-monthly-branch-cache-key:
22+
required: false
23+
type: string
24+
m2-monthly-cache-key:
25+
required: false
26+
type: string
27+
28+
defaults:
29+
run:
30+
shell: bash
31+
32+
jobs:
33+
test-deltaspike:
34+
runs-on: ubuntu-latest
35+
36+
strategy:
37+
fail-fast: false
38+
matrix:
39+
# LTS versions
40+
java: [11, 17, 21]
41+
42+
steps:
43+
- uses: actions/checkout@v4
44+
45+
- name: Set up JDK ${{ matrix.java }}
46+
uses: actions/setup-java@v4
47+
with:
48+
java-version: ${{ matrix.java }}
49+
distribution: 'temurin'
50+
51+
- name: Restore Maven Repository
52+
uses: actions/cache/restore@v4
53+
with:
54+
enableCrossOsArchive: true
55+
path: ~/.m2/repository
56+
key: ${{ inputs.m2-cache-key }}
57+
restore-keys: |
58+
${{ inputs.m2-monthly-branch-cache-key }}-
59+
${{ inputs.m2-monthly-cache-key }}-
60+
61+
- name: Test DeltaSpike
62+
run: echo DEBUG ./ci-support/test-deltaspike.sh deltaspike-v2.x.sh
63+
64+
- name: Upload failure Archive (if maven failed)
65+
uses: actions/upload-artifact@v4
66+
if: failure()
67+
with:
68+
name: test-reports-jdk${{ matrix.java }}-deltaspike
69+
path: '**/target/surefire-reports/**'

0 commit comments

Comments
 (0)