Skip to content

Commit 70f1df2

Browse files
committed
adding GitHub Action
1 parent 9e1df72 commit 70f1df2

1 file changed

Lines changed: 47 additions & 0 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- "**"
7+
tags-ignore:
8+
- '**'
9+
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onpushpull_requestpull_request_targetpathspaths-ignore
10+
# Avoid building if only modifying non-code files.
11+
# An exception is docs/options.md , as created from build
12+
paths:
13+
- "**"
14+
- '!README.md'
15+
- '!LICENSE'
16+
- '!.gitignore'
17+
- '!release_notes.md'
18+
19+
20+
jobs:
21+
full-build-base:
22+
runs-on: ubuntu-latest
23+
steps:
24+
# Checkout code
25+
- uses: actions/checkout@v4
26+
# Build/test for JDK
27+
- name: Setup JDK 8
28+
uses: actions/setup-java@v1
29+
with:
30+
java-version: 1.8
31+
# TODO: likely will need caching for JS deps as well
32+
- name: Cache Maven packages
33+
uses: actions/cache@v3
34+
with:
35+
path: ~/.m2
36+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
37+
restore-keys: ${{ runner.os }}-m2
38+
- name: Build with Maven
39+
run: mvn clean verify --fae
40+
# Make test report accessible from GitHub Actions (as Maven logs are long)
41+
- name: Publish Test Report
42+
if: success() || failure()
43+
uses: mikepenz/action-junit-report@v4
44+
env:
45+
NODE_OPTIONS: "--max_old_space_size=6144"
46+
with:
47+
report_paths: '**/target/surefire-reports/TEST-*.xml'

0 commit comments

Comments
 (0)