-
Notifications
You must be signed in to change notification settings - Fork 6
51 lines (40 loc) · 1.15 KB
/
ci.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
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java CI with Maven
on:
push:
branches: [ master, development ]
pull_request:
branches: [ master, development ]
jobs:
build_and_test:
runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
matrix:
java: [ '16', '17', '19' ]
runs-on: [ubuntu-latest, macos-latest, windows-latest]
name: Test on Java ${{ matrix.Java }} on ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v3
- name: Set up JDK ${{ matrix.Java }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.Java }}
distribution: 'temurin'
- name: Test with Maven
run: |
cd N2A
mvn install
- name: Further tests, non Win
if: ${{ matrix.runs-on != 'windows-latest' }}
run: |
pwd
ls -alt
# ...
- name: Further tests, Windows
if: ${{ matrix.runs-on == 'windows-latest' }}
run: |
pwd
dir
# ...