forked from Kong/unirest-java
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (26 loc) · 706 Bytes
/
maven.yml
File metadata and controls
31 lines (26 loc) · 706 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
name: Verify
on:
push:
# Sequence of patterns matched against refs/heads
branches-ignore:
- apache5
pull_request:
jobs:
build:
timeout-minutes: ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT) }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up JDK 1.11
uses: actions/setup-java@v1
with:
java-version: 1.11
- name: Cache
uses: actions/cache@v1.0.0
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build with Maven
run: mvn -B package --file pom.xml