-
Notifications
You must be signed in to change notification settings - Fork 3
37 lines (33 loc) · 1020 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
32
33
34
35
36
37
# This workflow builds the 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:
branches:
- '**'
tags:
- '**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code base
# https://github.com/actions/checkout
uses: actions/checkout@v3
- name: Set up JDK 11
# https://github.com/actions/setup-java
uses: actions/setup-java@v2
with:
cache: 'maven'
check-latest: true
distribution: 'adopt'
java-version: 11
- name: Prepare Maven cache
# https://github.com/actions/cache
uses: actions/[email protected]
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-maven
- name: Verify artifacts
run: mvn -B -Psonatype-snapshot-repository verify