[maven-release-plugin] prepare release qDup-0.8.3 #245
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: qDup CI | |
on: | |
push: | |
paths-ignore: | |
- '.gitignore' | |
- '.dockerignore' | |
- '*.md' | |
- '*.adoc' | |
- '*.txt' | |
- '.github/*.yml' | |
- '.github/*.java' | |
- '.github/*.conf' | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
paths-ignore: | |
- '.gitignore' | |
- '.dockerignore' | |
- '*.md' | |
- '*.adoc' | |
- '*.txt' | |
- '.github/*.yml' | |
- '.github/*.java' | |
- '.github/*.conf' | |
workflow_dispatch: | |
jobs: | |
build-yaup: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
repository: Hyperfoil/yaup | |
ref: refs/heads/master | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 17 | |
- name: Cache Maven packages | |
uses: actions/cache@v3 | |
with: | |
path: ~/.m2 | |
# refresh cache every month to avoid unlimited growth | |
key: q2maven-${{ steps.get-date.outputs.date }} | |
- name: Maven Version | |
run: mvn --version | |
- name: Build | |
run: | | |
mvn clean install -DskipTests | |
- name: Tar Maven Repo | |
shell: bash | |
run: tar -I 'pigz -9' -cf maven-repo.tgz -C ~ .m2/repository | |
- name: Persist Maven Repo | |
uses: actions/upload-artifact@v2 | |
with: | |
name: maven-repo | |
path: maven-repo.tgz | |
retention-days: 1 | |
build-qDup: | |
runs-on: ubuntu-latest | |
needs: [build-yaup] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 17 | |
- name: Cache Maven packages | |
uses: actions/cache@v3 | |
with: | |
path: ~/.m2 | |
# refresh cache every month to avoid unlimited growth | |
key: q2maven-${{ steps.get-date.outputs.date }} | |
- name: Maven Version | |
run: mvn --version | |
- name: Download Maven Repo | |
uses: actions/download-artifact@v1 | |
with: | |
name: maven-repo | |
path: . | |
- name: Extract Maven Repo | |
shell: bash | |
run: tar -xzf maven-repo.tgz -C ~ | |
- name: Build | |
run: | | |
./mvnw clean test | |
- name: Upload artifact for failed workflow | |
if: failure() | |
uses: actions/upload-artifact@v2 | |
with: | |
name: test logs | |
path: | | |
*/target/surefire-reports/* |