-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (32 loc) · 880 Bytes
/
build.yml
File metadata and controls
38 lines (32 loc) · 880 Bytes
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
#CI/MANUAL TRIGGER
name: Build
on:
push:
branches: [ main, dev ]
pull_request:
branches: [ main ]
paths-ignore:
- '**.md'
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ windows-2022, ubuntu-20.04, macOS-11 ]
java-version: [ '8', '11', '17' ]
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v3
with:
java-version: '${{ matrix.java-version }}'
distribution: 'temurin'
- name: Build with Maven
run: mvn --batch-mode --update-snapshots compile -DskipTests=true
- name: Test with Maven
if: ${{ matrix.os == 'windows-2022' && matrix.java-version == '8' }}
run: mvn test