-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (36 loc) · 1.17 KB
/
test.yml
File metadata and controls
45 lines (36 loc) · 1.17 KB
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
# SPDX-FileCopyrightText: 2025 Digg - Agency for Digital Government
#
# SPDX-License-Identifier: CC0-1.0
---
name: Maven Test
on: [workflow_call] # yamllint disable-line rule:truthy
permissions:
contents: read
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
java-version: ['21']
os: [ubuntu-latest]
env:
MAVEN_CLI_OPTS: "--batch-mode --no-transfer-progress --errors --fail-at-end -Dstyle.color=always -DinstallAtEnd=true
-DdeployAtEnd=true"
permissions:
contents: read
packages: read
steps:
- name: Checkout repository
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
- name: Set up JDK
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
with:
java-version: ${{ matrix.java-version }}
distribution: 'temurin' # Popular Java distribution
cache: 'maven' # Enables Maven caching
- name: Run tests
env:
GITHUB_ACTOR: ${{ github.actor }}
PACKAGE_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: "# shellcheck disable=SC2086 \nmvn $MAVEN_CLI_OPTS test\n"