-
Notifications
You must be signed in to change notification settings - Fork 4
63 lines (61 loc) · 1.82 KB
/
build.yml
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
name: Build
on:
push:
branches:
- main
- gs14.5
pull_request:
workflow_dispatch:
jobs:
Build:
name: Build (Java ${{ matrix.java-version }})
runs-on: ubuntu-latest
permissions:
checks: write
contents: read
issues: read
pull-requests: write
strategy:
matrix:
java-version: [ 11, 17 ]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java-version }}
distribution: 'temurin'
cache: 'maven'
- name: Maven setup
uses: s4u/[email protected]
with:
mirrors: |
[{
"id": "com.springsource.repository.bundles.external.mirror",
"name": "com.springsource.repository.bundles.external",
"mirrorOf": "com.springsource.repository.bundles.external",
"url": "http://repository.springsource.com/maven/bundles/external",
"blocked": false
},
{
"id": "org.openspaces.mirror",
"name": "org.openspaces",
"mirrorOf": "org.openspaces",
"url": "http://maven-repository.openspaces.org",
"blocked": false
},
{
"id": "spy.mirror",
"name": "spy",
"mirrorOf": "spy",
"url": "http://files.couchbase.com/maven2",
"blocked": false
}]
- name: Compile
run: mvn -T 1C --batch-mode -Dstyle.color=always --fail-at-end -DskipTests package
- name: Test
run: mvn --batch-mode -Dstyle.color=always --fail-at-end verify
- name: Publish Test Report
if: always()
uses: scacap/action-surefire-report@v1