-
-
Notifications
You must be signed in to change notification settings - Fork 2
76 lines (62 loc) · 1.81 KB
/
Copy pathbuild.yml
File metadata and controls
76 lines (62 loc) · 1.81 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true
env:
# Opt in to Node.js 24 for JavaScript-based actions
# (silences the Node.js 20 deprecation warning until all actions ship Node 24 builds).
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 45
permissions:
contents: read
checks: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Set up JDK 21
uses: actions/setup-java@v5.7.0
with:
distribution: temurin
java-version: '21'
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v6
- name: Set up Node.js
uses: actions/setup-node@v7
with:
node-version: '24'
- name: Run JavaScript parser tests
run: node --test
working-directory: webapp/src/test/js
- name: Verify Docker is available (for Testcontainers)
run: docker version
- name: Clean build
run: ./gradlew clean build --no-daemon --stacktrace
- name: Publish test report
if: always()
uses: mikepenz/action-junit-report@v6
with:
report_paths: '**/build/test-results/test/TEST-*.xml'
check_name: 'Test results'
detailed_summary: true
include_passed: true
flaky_summary: true
require_tests: false
annotate_notice: false
updateComment: true
job_summary: true
- name: Upload test reports
if: always()
uses: actions/upload-artifact@v7
with:
name: test-reports
path: '**/build/reports/tests/**'
if-no-files-found: ignore