Skip to content

Commit 9708eaa

Browse files
authored
Create maven.yml
1 parent 54f76bd commit 9708eaa

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/maven.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Java CI with Maven
2+
3+
on: [push, pull_request]
4+
env:
5+
DEVELOPER_DIR: /Applications/Xcode_11.2.app/Contents/Developer
6+
jobs:
7+
build:
8+
runs-on: macos-latest
9+
10+
steps:
11+
- uses: actions/checkout@v2
12+
13+
- name: Cache local Maven repository
14+
uses: actions/cache@v2
15+
with:
16+
path: ~/.m2/repository
17+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
18+
restore-keys: |
19+
${{ runner.os }}-maven-
20+
21+
- name: Set up JDK 11
22+
uses: actions/setup-java@v1
23+
with:
24+
java-version: 11
25+
26+
- name: Build with Maven
27+
run: mvn --batch-mode --no-transfer-progress --update-snapshots verify

0 commit comments

Comments
 (0)