-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 779 Bytes
/
ci.yml
File metadata and controls
35 lines (33 loc) · 779 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
name: CI
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
build:
strategy:
matrix:
java: [ '17' ]
os: [ 'ubuntu-latest' ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java }}
distribution: 'zulu'
- name: Cache local Maven repository
uses: actions/cache@v4
continue-on-error: true
with:
path: ~/.m2/repository
key: cache-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
cache-maven-${{ hashFiles('**/pom.xml') }}
cache-maven-
- name: Build
run: mvn --no-transfer-progress -B clean package