fix pom version #223
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 | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
env: | |
MAVEN_CUSTOM_OPTS: "-Xmx4g -XX:+ExitOnOutOfMemoryError" | |
RETRY: .github/bin/retry | |
concurrency: | |
# main branch should complete running | |
group: ${{ github.ref == 'refs/heads/main' && format('ci-master-{0}', github.sha) || format('ci-{0}', github.ref) }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
timeout-minutes: 200 | |
steps: | |
- name: Free Disk Space | |
run: | | |
df -h | |
sudo apt-get clean | |
df -h | |
- uses: actions/checkout@v2 | |
with: | |
submodules: 'true' | |
- uses: actions/setup-java@v1 | |
with: | |
java-version: 8 | |
- name: Cache local Maven repository | |
id: cache-maven | |
uses: actions/cache@v2 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-2-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven-2- | |
- name: Populate maven cache | |
if: steps.cache-maven.outputs.cache-hit != 'true' | |
run: ./mvnw de.qaware.maven:go-offline-maven-plugin:resolve-dependencies | |
- name: Maven Build | |
run: | | |
export MAVEN_OPTS="${MAVEN_CUSTOM_OPTS}" | |
./mvnw -T 1C clean package install -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true |