Skip to content

workflow pull-request test #1

workflow pull-request test

workflow pull-request test #1

Workflow file for this run

name: build
on: [pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
MAVEN_OPTS: -Dmaven.wagon.httpconnectionManager.ttlSeconds=25 -Dmaven.wagon.http.retryHandler.count=3 -Dorg.slf4j.simpleLogger.defaultLogLevel=WARN
jobs:
build:
runs-on: [ubuntu-20.04]
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: 11
- name: Maven repository caching
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: mf-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
gt-maven-
- name: Disable checksum offloading
# See: https://github.com/actions/virtual-environments/issues/1187#issuecomment-686735760
run: sudo ethtool -K eth0 tx off rx off
- name: Build with Maven
run: |
mvn -B -fae clean install
- name: Remove SNAPSHOT jars from repository
run: |
find ~/.m2/repository -name "*SNAPSHOT*" -type d | xargs rm -rf {}