-
Notifications
You must be signed in to change notification settings - Fork 5
39 lines (37 loc) · 1 KB
/
test-single.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
name: Test Single Module
on:
workflow_dispatch:
inputs:
hal-image:
type: choice
required: true
default: quay.io/halconsole/hal
description: 'The HAL image name'
options:
- quay.io/halconsole/hal
- quay.io/halconsole/hal-development
module:
description: 'The module (directory name) to test'
required: true
jobs:
test:
runs-on: ubuntu-latest
env:
MVN: ./mvnw --show-version --batch-mode
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
- name: Set up JDK
id: setup-jdk
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: maven
- name: Install
id: install
run: $MVN install
- name: Run Tests
id: run-tests
run: $MVN --projects ${{ github.event.inputs.module }} --also-make -P all-tests test -Dhal.image=${{ github.event.inputs.hal-image }}