-
Notifications
You must be signed in to change notification settings - Fork 35
39 lines (33 loc) · 1.16 KB
/
maven.yml
File metadata and controls
39 lines (33 loc) · 1.16 KB
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
38
39
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Java CI with Maven
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
name: Maven test on Java ${{ matrix.Java }}
runs-on: ubuntu-latest
env:
SEGMENT_DOWNLOAD_TIMEOUT_MINS: '15'
strategy:
matrix:
java: ['20']
steps:
# - name: Workflow Telemetry
# uses: runforesight/workflow-telemetry-action@v1.8.7
- uses: actions/checkout@v3
- name: Set up JDK 20
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: 'adopt'
cache: maven
- name: Maven Tests
run: mvn -B -X -e clean compile --file pom.xml --batch-mode --fail-fast