forked from vsch/flexmark-java
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (45 loc) · 1.01 KB
/
build.yaml
File metadata and controls
53 lines (45 loc) · 1.01 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
name: Build and Test
on:
workflow_dispatch:
pull_request:
types: [opened, synchronize, reopened]
branches:
- master
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
checks: write
env:
MAVEN_OPTS: -Xmx2g
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
cache: 'maven'
- name: Run tests
run: |
mvn test \
--batch-mode \
--fail-at-end
- name: Report test results
uses: dorny/test-reporter@v2
if: always()
with:
name: Maven Tests
path: '**/target/surefire-reports/*.xml'
reporter: java-junit
fail-on-error: 'false'
- name: Build project
run: |
mvn package \
--batch-mode \
-DskipTests=true