-
Notifications
You must be signed in to change notification settings - Fork 297
31 lines (24 loc) · 758 Bytes
/
maven.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
# 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: build
on: [push, pull_request]
jobs:
compile:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 8, 11, 17 ]
jdk: ['temurin', 'zulu']
name: Java ${{ matrix.java }} ${{ matrix.jdk }}
steps:
- name: Checkout Source Code
uses: actions/checkout@v2
- name: Setup Java
uses: actions/setup-java@v2
with:
distribution: ${{ matrix.jdk }}
java-package: jdk
java-version: ${{ matrix.java }}
cache: 'maven'
- name: Build with maven
run: mvn -B test