|
| 1 | +name: Manual E2E Tests |
| 2 | + |
| 3 | +env: |
| 4 | + FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true |
| 5 | + |
| 6 | +on: |
| 7 | + workflow_dispatch: |
| 8 | + inputs: |
| 9 | + confirm_destructive: |
| 10 | + description: Confirm this run is allowed to execute destructive E2E tests |
| 11 | + required: true |
| 12 | + default: false |
| 13 | + type: boolean |
| 14 | + |
| 15 | +permissions: |
| 16 | + contents: read |
| 17 | + |
| 18 | +concurrency: |
| 19 | + group: haloapi-manual-e2e |
| 20 | + cancel-in-progress: false |
| 21 | + |
| 22 | +jobs: |
| 23 | + e2e: |
| 24 | + name: Run E2E Tests |
| 25 | + runs-on: windows-latest |
| 26 | + env: |
| 27 | + HaloTestingURL: ${{ secrets.HaloTestingURL }} |
| 28 | + HaloTestingClientID: ${{ secrets.HaloTestingClientID }} |
| 29 | + HaloTestingClientSecret: ${{ secrets.HaloTestingClientSecret }} |
| 30 | + HaloTestingTenant: ${{ secrets.HaloTestingTenant }} |
| 31 | + steps: |
| 32 | + - name: Validate destructive test confirmation |
| 33 | + shell: pwsh |
| 34 | + run: | |
| 35 | + $ErrorActionPreference = 'Stop' |
| 36 | + if ('${{ inputs.confirm_destructive }}' -ne 'true') { |
| 37 | + throw 'This workflow runs destructive E2E tests. Set confirm_destructive=true to proceed.' |
| 38 | + } |
| 39 | +
|
| 40 | + - name: Checkout repository |
| 41 | + uses: actions/checkout@v6 |
| 42 | + |
| 43 | + - name: Bootstrap environment |
| 44 | + shell: pwsh |
| 45 | + run: | |
| 46 | + $ErrorActionPreference = 'Stop' |
| 47 | + & "$env:GITHUB_WORKSPACE\Bootstrap.ps1" |
| 48 | +
|
| 49 | + - name: Run E2E tests |
| 50 | + shell: pwsh |
| 51 | + run: | |
| 52 | + $ErrorActionPreference = 'Stop' |
| 53 | + pwsh -NoProfile -File "$env:GITHUB_WORKSPACE\DevOps\Quality\test.ps1" -Suite E2E -Verbosity Detailed |
| 54 | +
|
| 55 | + - name: Upload E2E test results |
| 56 | + if: always() |
| 57 | + uses: actions/upload-artifact@v6 |
| 58 | + with: |
| 59 | + name: pester-e2e-results |
| 60 | + path: .artifacts/TestResults.e2e.xml |
| 61 | + |
| 62 | + - name: Publish E2E test results |
| 63 | + if: always() |
| 64 | + uses: dorny/test-reporter@v3 |
| 65 | + with: |
| 66 | + name: Pester Tests (E2E) |
| 67 | + path: .artifacts/TestResults.e2e.xml |
| 68 | + reporter: java-junit |
0 commit comments