From ae379290cd69ea31fdf9e461b63f3a2065f7620a Mon Sep 17 00:00:00 2001 From: Cheng Fang Date: Mon, 31 Jul 2023 09:06:34 -0400 Subject: [PATCH] WFTC-132 Enable manual start of github actions CI workflow [skip ci] --- .github/workflows/ci-manual.yml | 59 +++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 .github/workflows/ci-manual.yml diff --git a/.github/workflows/ci-manual.yml b/.github/workflows/ci-manual.yml new file mode 100644 index 0000000..ff2acea --- /dev/null +++ b/.github/workflows/ci-manual.yml @@ -0,0 +1,59 @@ +# This workflow will build a Java project with Maven +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven + +name: Manual Unit Tests +on: + workflow_dispatch: + inputs: + os: + description: 'OS' + required: false + default: 'ubuntu-latest' + type: choice + options: + - ubuntu-latest + - windows-latest + - macos-latest + jdk-distribution: + description: 'JDK Distribution' + required: false + default: 'temurin' + type: choice + options: + - temurin + - semeru + - microsoft + - oracle + - zulu + - corretto + - liberica + jdk-version: + description: 'JDK Version' + required: false + default: '11' + type: choice + options: + - 11 + - 17 + +jobs: + build-test: + name: ${{ inputs.jdk-distribution}}-${{ inputs.jdk-version }}-${{ inputs.os }} + runs-on: ${{ inputs.os }} + timeout-minutes: 25 + strategy: + fail-fast: false + steps: + - uses: actions/checkout@v3 + - name: Set up JDK ${{ inputs.jdk-distribution }} ${{ inputs.jdk-version }} + uses: actions/setup-java@v3 + with: + distribution: ${{ inputs.jdk-distribution }} + java-version: ${{ inputs.jdk-version }} + - name: Run Tests + run: mvn -ntp -U -B -fae clean verify + - uses: actions/upload-artifact@v3 + if: failure() + with: + name: ${{ inputs.jdk-distribution }}-${{ inputs.jdk-version }}-${{ inputs.os }} + path: '**/surefire-reports/*.txt'