-
Notifications
You must be signed in to change notification settings - Fork 37
61 lines (59 loc) · 1.64 KB
/
ci-manual.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Manual Unit Tests
on:
workflow_dispatch:
inputs:
os:
description: 'OS'
required: false
default: 'ubuntu-latest'
type: choice
options:
- ubuntu-latest
- windows-latest
- macos-latest
jdk-distribution:
description: 'JDK Distribution'
required: false
default: 'temurin'
type: choice
options:
- temurin
- semeru
- microsoft
- oracle
- zulu
- corretto
- liberica
jdk-version:
description: 'JDK Version'
required: false
default: '11'
type: choice
options:
- 11
- 17
- 21
jobs:
build-test:
name: ${{ inputs.jdk-distribution}}-${{ inputs.jdk-version }}-${{ inputs.os }}
runs-on: ${{ inputs.os }}
timeout-minutes: 25
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ inputs.jdk-distribution }} ${{ inputs.jdk-version }}
uses: actions/setup-java@v4
with:
distribution: ${{ inputs.jdk-distribution }}
java-version: ${{ inputs.jdk-version }}
cache: 'maven'
- name: Run Tests
run: mvn -ntp -U -B -fae clean verify
- uses: actions/upload-artifact@v4
if: failure()
with:
name: ${{ inputs.jdk-distribution }}-${{ inputs.jdk-version }}-${{ inputs.os }}
path: '**/surefire-reports/*.txt'