|
11 | 11 | required: false |
12 | 12 | testrail-project: |
13 | 13 | required: false |
14 | | - testrail-user: |
| 14 | + testrail-username: |
15 | 15 | required: false |
16 | 16 | testrail-api-key: |
17 | 17 | required: false |
@@ -128,17 +128,24 @@ jobs: |
128 | 128 | - name: upload test results to TestRail |
129 | 129 | if: always() |
130 | 130 | continue-on-error: true |
131 | | - uses: oxidecomputer/trcli-action@1ac634c97714109c05cbfbe4d92b9fc7349626c3 |
132 | | - with: |
133 | | - host: ${{ secrets.testrail-host }} |
134 | | - username: ${{ secrets.testrail-user }} |
135 | | - password: ${{ secrets.testrail-api-key }} |
136 | | - project: ${{ secrets.testrail-project }} |
137 | | - report_file_path: ./acctest/acc-tests.xml |
138 | | - auto_create_cases_yes: true |
139 | | - case_matcher: name |
140 | | - title: 'Acceptance Tests (${{ matrix.tf-binary }})' |
141 | | - run_description: 'GitHub workflow: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}' |
| 131 | + env: |
| 132 | + TESTRAIL_HOST: ${{ secrets.testrail-host }} |
| 133 | + TESTRAIL_USERNAME: ${{ secrets.testrail-username }} |
| 134 | + TESTRAIL_API_KEY: ${{ secrets.testrail-api-key }} |
| 135 | + TESTRAIL_PROJECT: ${{ secrets.testrail-project }} |
| 136 | + run: | |
| 137 | + uvx trcli \ |
| 138 | + --host "${TESTRAIL_HOST}" \ |
| 139 | + --username "${TESTRAIL_USERNAME}" \ |
| 140 | + --key "${TESTRAIL_API_KEY}" \ |
| 141 | + --project "${TESTRAIL_PROJECT}" \ |
| 142 | + --yes `# Auto-create new test cases.` \ |
| 143 | + parse_junit \ |
| 144 | + --file './acctest/acc-tests.xml' \ |
| 145 | + --title '${{ matrix.tf-binary }} - ${{ github.run_id }} - ${{ job.check_run_id }}' \ |
| 146 | + --run-description 'GitHub workflow: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/job/${{ github.check_run_id }}' \ |
| 147 | + --update-existing-cases 'yes' \ |
| 148 | + --case-matcher 'auto' |
142 | 149 | - name: upload logs |
143 | 150 | if: always() |
144 | 151 | continue-on-error: true |
|
0 commit comments