Skip to content

Commit 94625bd

Browse files
committed
github: add build and test action
(cherry picked from commit 5fd0ef0) Signed-off-by: Tigran Mkrtchyan <[email protected]>
1 parent 3e2a92d commit 94625bd

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/build.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Build and Test
2+
3+
on:
4+
push:
5+
pull_request:
6+
types: [opened, reopened]
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Set up JDK 11
14+
uses: actions/setup-java@v4
15+
with:
16+
java-version: "11"
17+
distribution: "temurin"
18+
cache: maven
19+
- name: Build with Maven
20+
run: mvn --batch-mode --update-snapshots package
21+
22+
- name: JUnit test report
23+
uses: mikepenz/action-junit-report@v5
24+
if: always()
25+
with:
26+
check_name: junit test report
27+
report_paths: "**/target/surefire-reports/*.xml"

0 commit comments

Comments
 (0)