-
Notifications
You must be signed in to change notification settings - Fork 38
32 lines (30 loc) · 879 Bytes
/
tests.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
name: Tests
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macOS-latest, ubuntu-latest, windows-latest]
java: [ 8, 11, 17 ]
name: ${{ matrix.os }} (Java ${{ matrix.java }})
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cache
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ matrix.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ matrix.os }}-maven-
- name: JDK
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- name: Build with Maven
env:
SSO_CLIENT_ID: ${{ secrets.SSO_CLIENT_ID }}
SSO_REFRESH_TOKEN: ${{ secrets.SSO_REFRESH_TOKEN }}
run: mvn -B package --file pom.xml -P skip-online-tests