-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (27 loc) · 833 Bytes
/
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
---
name: CI
on: [ push ]
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
javaVersion: [ "17" ]
javaDistribution: [ "adopt", "zulu" ]
name: Java ${{ matrix.javaVersion }}-${{ matrix.javaDistribution }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: ${{ matrix.javaDistribution }}
java-version: ${{ matrix.javaVersion }}
- uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Check Code Formatting w/ Spotless
run: mvn spotless:check --no-transfer-progress
- name: Test with Maven
run: mvn test --no-transfer-progress