-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 1.01 KB
/
java.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
name: Java CI
on: [ push ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4.0.0
- name: Checkout submodules
uses: actions/checkout@v4.0.0
with:
repository: zodac/advent-of-code-inputs
token: ${{ secrets.SUBMODULE_ACCESS }}
path: advent-of-code-inputs
- name: Set up JDK 21
uses: actions/setup-java@v3.13.0
with:
distribution: 'temurin'
java-version: '21'
- name: Setup Maven Action
uses: s4u/setup-maven-action@v1.10.0
with:
java-distribution: 'temurin'
java-version: '21'
maven-version: '3.9.4'
- name: Cache local .m2
uses: actions/cache@v3.3.2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**.pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Run lints and test with Maven
run: mvn clean install -Dall