-
Notifications
You must be signed in to change notification settings - Fork 2
31 lines (31 loc) · 1018 Bytes
/
build.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
on: [push]
jobs:
build-maven:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- id: setup-java8
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '8'
cache: maven
- shell: bash
run: |
mkdir -p $HOME/.m2 \
&& cat << EOF > $HOME/.m2/toolchains.xml
<?xml version="1.0" encoding="UTF8"?>
<toolchains>
<toolchain>
<type>jdk</type>
<provides>
<version>1.8</version>
<vendor>temurin</vendor>
</provides>
<configuration>
<jdkHome>${{ steps.setup-java8.outputs.path }}</jdkHome>
</configuration>
</toolchain>
</toolchains>
EOF
- run: mvn --batch-mode --update-snapshots verify