Skip to content

Run the test suite with GHA #299

Run the test suite with GHA

Run the test suite with GHA #299

Workflow file for this run

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 --no-transfer-progress
- 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@v4
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@v4
with:
name: maven-repo
path: .
- name: Extract Maven Repo
shell: bash
run: tar -xzf maven-repo.tgz -C ~
- name: Test hang command
run: |
export __qdup_ec=$?; echo $__qdup_ec;
- name: Build
run: |
./mvnw clean test --no-transfer-progress -Dtest=ScriptCmdTest#async_in_regex_in_watch
- name: Print JVM Thread Dumps When Cancelled
if: cancelled()
run: |
for jvm_pid in $(jps -q -J-XX:+PerfDisableSharedMem); do
jcmd $jvm_pid Thread.print
done
- name: Upload logs for failed/cancelled workflow
if: failure() || cancelled()
uses: actions/upload-artifact@v4
with:
name: logs
path: |
*/target/surefire-reports/*
/tmp/qdup*