Skip to content

Commit

Permalink
actually use the envs
Browse files Browse the repository at this point in the history
  • Loading branch information
midleman committed Dec 13, 2024
1 parent bc5cfa9 commit 9fb49b4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/test-e2e-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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"
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test-e2e-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 9fb49b4

Please sign in to comment.