-
Notifications
You must be signed in to change notification settings - Fork 9
59 lines (53 loc) · 1.81 KB
/
all-running.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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 }}