feat: Update task launch builder #405
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI PRs | |
on: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
# cache maven repo | |
- uses: actions/cache@v2 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-m2- | |
# jdk8 | |
- uses: actions/setup-java@v1 | |
with: | |
java-version: 1.8 | |
# maven version | |
- uses: jvalkeal/setup-maven@v1 | |
with: | |
maven-version: 3.6.2 | |
# build | |
- name: Build | |
run: | | |
mvn -U -B clean package | |
# clean m2 cache | |
- name: Clean cache | |
run: | | |
find ~/.m2/repository -type d -name '*SNAPSHOT' | xargs rm -fr |