-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
10 additions
and
10 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,7 @@ on: | |
type: string | ||
report_testrail: | ||
required: false | ||
description: "Whether or not to report results to Test Rail." | ||
description: "Whether or not to report results to TestRail." | ||
default: false | ||
type: boolean | ||
|
||
|
@@ -131,17 +131,17 @@ jobs: | |
report-dir: ${{ env.REPORT_DIR }} | ||
|
||
- name: Install trcli | ||
if: ${{ inputs.report_testrail }} | ||
# if: ${{ inputs.report_testrail == 'true' }} | ||
shell: bash | ||
run: sudo apt-get update && sudo apt-get install -y python3-pip && pip3 install trcli | ||
|
||
- name: Upload Test Results to TestRail | ||
if: ${{ inputs.report_testrail }} | ||
# if: ${{ inputs.report_testrail == 'true' }} | ||
shell: bash | ||
run: | | ||
TESTRAIL_TITLE="$(date +'%Y-%m-%d') ${{ inputs.testrail-title }} - $GITHUB_REF_NAME" | ||
TESTRAIL_TITLE="$(date +'%Y-%m-%d') ${{ env.TESTRAIL_TITLE }} - $GITHUB_REF_NAME" | ||
echo "TESTRAIL_TITLE=$TESTRAIL_TITLE" >> $GITHUB_ENV | ||
trcli --host "https://posit.testrail.io/" --project "${{ inputs.testrail-project }}" --username [email protected] --key "${{ inputs.testrail-api-key }}" parse_junit --file "./junit.xml" --case-matcher name --title "$TESTRAIL_TITLE" --close-run | ||
trcli --host "https://posit.testrail.io/" --project "${{ env.TESTRAIL_PROJECT }}" --username [email protected] --key "${{ env.TESTRAIL_API_KEY }}" parse_junit --file "./junit.xml" --case-matcher name --title "$TESTRAIL_TITLE" --close-run | ||
env: | ||
TESTRAIL_TITLE: ${{ inputs.project }} | ||
TESTRAIL_PROJECT: "Positron" | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ on: | |
type: string | ||
report_testrail: | ||
required: false | ||
description: "Whether or not to report results to Test Rail." | ||
description: "Whether or not to report results to TestRail." | ||
default: false | ||
type: boolean | ||
|
||
|
@@ -169,17 +169,17 @@ jobs: | |
report-dir: ${{ env.REPORT_DIR }} | ||
|
||
- name: Install trcli | ||
if: ${{ inputs.report_testrail }} | ||
# if: ${{ inputs.report_testrail == 'true' }} | ||
shell: bash | ||
run: sudo apt-get update && sudo apt-get install -y python3-pip && pip3 install trcli | ||
|
||
- name: Upload Test Results to TestRail | ||
if: ${{ inputs.report_testrail }} | ||
# if: ${{ inputs.report_testrail == 'true' }} | ||
shell: bash | ||
run: | | ||
TESTRAIL_TITLE="$(date +'%Y-%m-%d') ${{ inputs.testrail-title }} - $GITHUB_REF_NAME" | ||
TESTRAIL_TITLE="$(date +'%Y-%m-%d') ${{ env.TESTRAIL_TITLE }} - $GITHUB_REF_NAME" | ||
echo "TESTRAIL_TITLE=$TESTRAIL_TITLE" >> $GITHUB_ENV | ||
trcli --host "https://posit.testrail.io/" --project "${{ inputs.testrail-project }}" --username [email protected] --key "${{ inputs.testrail-api-key }}" parse_junit --file "./junit.xml" --case-matcher name --title "$TESTRAIL_TITLE" --close-run | ||
trcli --host "https://posit.testrail.io/" --project "${{ env.TESTRAIL_PROJECT }}" --username [email protected] --key "${{ env.TESTRAIL_API_KEY }}" parse_junit --file "./junit.xml" --case-matcher name --title "$TESTRAIL_TITLE" --close-run | ||
env: | ||
TESTRAIL_TITLE: "e2e-windows" | ||
TESTRAIL_PROJECT: "Positron" | ||
|