-
Notifications
You must be signed in to change notification settings - Fork 6
58 lines (51 loc) · 1.64 KB
/
nightly.yaml
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
name: Nightly Build
on:
schedule:
- cron: '0 0 * * *' # daily at midnight UTC
workflow_dispatch:
jobs:
java_build:
if: github.repository == 'langchain4j/langchain4j-community'
strategy:
matrix:
java_version:
- 17
- 21
include:
- java_version: '17'
mvn_opts: ''
- java_version: '21'
mvn_opts: ''
max-parallel: 1
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java_version }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java_version }}
distribution: 'temurin'
cache: 'maven'
- name: Build with JDK ${{ matrix.java_version }}
run: |
## compile and verify javadocs on ALL modules
mvn -B -U -T8C test javadoc:aggregate \
--fail-at-end \
${{ matrix.mvn_opts }}
## run tests for some modules
mvn -B -U verify \
--fail-at-end \
-Dmaven.test.failure.ignore=true \
${{ matrix.mvn_opts }}
- name: Upload Test Reports
if: always() # always run even if the previous step failed or was cancelled
uses: actions/upload-artifact@v3
with:
name: Test-Reports-${{ matrix.java-version }}
path: '**/target/*-reports/*'
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
if: always() # always run even if the previous step failed or was cancelled
with:
report_paths: '**/target/*-reports/TEST-*.xml'
annotate_only: true