-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (59 loc) · 1.67 KB
/
test.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
62
63
64
65
66
67
name: Test
on:
push:
branches:
- dependabot/**
pull_request:
types:
- opened
- synchronize
workflow_call:
jobs:
# separate job to set as required in branch protection,
# as the build names above change each time Node versions change
lint:
name: Linting
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Super Linter Code Base
uses: github/super-linter/slim@v5
env:
FILTER_REGEX_INCLUDE: "((/src/main/.*.java)|updateVersion.sh)"
DEFAULT_BRANCH: master
VALIDATE_GOOGLE_JAVA_FORMAT: true
VALIDATE_BASH: true
VALIDATE_ALL_CODEBASE: false
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
test_matrix:
runs-on: ubuntu-latest
strategy:
matrix:
java-version: ${{ fromJson(vars.RTLDEV_MW_CI_JAVA_MATRIX) }}
name: Test @ Java JDK ${{ matrix.java-version }}
needs: lint
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Java JDK @^${{ matrix.java-version }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java-version }}
distribution: ${{ vars.RTLDEV_MW_CI_JAVA_DISTRO }}
- name: Validate & Coverage Report
run: |
mvn -B clean site package
zip -r /home/runner/target.zip ./target
- uses: actions/upload-artifact@v3
id: upload
with:
name: coverage
path: ~/target.zip
retention-days: 1