2021-02-26 22:45:50 +01:00
|
|
|
name: Auction House Build
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2021-02-27 22:00:22 +01:00
|
|
|
paths:
|
|
|
|
- 'src/**'
|
|
|
|
- 'pom.xml'
|
|
|
|
- '.github/workflows/maven.yml'
|
2021-02-26 22:45:50 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-02-27 22:00:22 +01:00
|
|
|
- name: Checkout the repository
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
2021-02-27 00:15:21 +01:00
|
|
|
- name: Set up JDK 1.8
|
|
|
|
uses: actions/setup-java@v1
|
|
|
|
with:
|
2021-02-27 22:00:22 +01:00
|
|
|
java-package: jdk
|
2021-02-27 00:15:21 +01:00
|
|
|
java-version: 1.8
|
|
|
|
|
2021-02-27 22:00:22 +01:00
|
|
|
- name: Cache Maven Packages
|
|
|
|
uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: ~/.m2
|
|
|
|
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
|
|
|
|
restore-keys: ${{ runner.os }}-m2
|
|
|
|
|
2021-02-27 00:15:21 +01:00
|
|
|
- name: Build with Maven
|
2021-02-27 22:00:22 +01:00
|
|
|
run: mvn verify -B --file pom.xml
|
2021-02-26 23:00:22 +01:00
|
|
|
|
2021-02-27 22:00:22 +01:00
|
|
|
jitpack:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: badasintended/autojitpack@v0
|