ww-7475 #20
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: ww-7475 | |
on: | |
workflow_dispatch: | |
inputs: | |
ALLURE_JOB_RUN_ID: | |
description: ALLURE_JOB_RUN_ID service parameter. Leave blank. | |
required: false | |
ALLURE_USERNAME: | |
description: ALLURE_USERNAME service parameter. Leave blank. | |
required: false | |
env: | |
ALLURE_JOB_RUN_ID: ${{ inputs.ALLURE_JOB_RUN_ID }} | |
ALLURE_RESULTS: build/allure-results | |
jobs: | |
regression-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up JDK 1.8 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 1.8 | |
- name: install and configure allurectl | |
uses: allure-framework/[email protected] | |
with: | |
allure-endpoint: https://testing.testops.cloud | |
allure-token: ${{ secrets.TESTING_ALLURE_TOKEN }} | |
allure-project-id: 276 | |
allurectl-version: 2.15.1 | |
- name: Triggered from GH dispatch | |
shell: bash | |
id: test-dispatch | |
if: ${{ inputs.ALLURE_JOB_RUN_ID == '' }} | |
run: | | |
echo "Regression test started from github creating regression testplan.json" | |
allurectl test-case plan -q "testPlan=7477" --output-file ${ALLURE_TESTPLAN_PATH} | |
cat ./testplan.json || true | |
allurectl watch -- ./gradlew clean test | |
printenv | grep GITHUB | |
printenv | grep ALLURE_ | |
env: | |
ALLURE_TESTPLAN_PATH: ./testplan.json | |
ALLURE_RESULTS: ${{ env.ALLURE_RESULTS }} | |
- name: Triggered from Allure TestOps | |
id: test-ato | |
if: ${{ inputs.ALLURE_JOB_RUN_ID != '' }} | |
run: | | |
allurectl watch -- ./gradlew clean test | |
printenv | grep GITHUB | |
printenv | grep ALLURE_ | |
env: | |
ALLURE_RESULTS: ${{ env.ALLURE_RESULTS }} |