BAU: Bump xstate from 4.26.1 to 5.31.0 #203
This file contains hidden or 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
| name: Playwright acceptance tests | |
| on: | |
| pull_request: | |
| types: [opened, reopened, synchronize] | |
| workflow_dispatch: | |
| jobs: | |
| acceptance: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write | |
| contents: read | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Set up ECR pull credentials | |
| uses: aws-actions/configure-aws-credentials@ec61189d14ec14c8efccab744f656cffd0e33f37 # v6.1.0 | |
| with: | |
| role-to-assume: ${{ secrets.ORCH_STUB_ECR_PULL_ROLE_ARN }} | |
| aws-region: eu-west-2 | |
| - name: Login to ECR | |
| id: login-ecr | |
| uses: aws-actions/amazon-ecr-login@19d944daaa35f0fa1d3f7f8af1d3f2e5de25c5b7 # v2.1.4 | |
| - name: Pull orch stub image | |
| env: | |
| ORCH_STUB_IMAGE: ${{ steps.login-ecr.outputs.registry }}/build-orch-stub-repository:latest | |
| run: | | |
| echo "ORCH_STUB_IMAGE=$ORCH_STUB_IMAGE" >> "$GITHUB_ENV" | |
| docker pull "$ORCH_STUB_IMAGE" | |
| - name: Run tests | |
| working-directory: playwright-acceptance-tests | |
| run: docker compose up --build --abort-on-container-exit --exit-code-from test-runner | |
| - name: Collect logs | |
| if: always() | |
| working-directory: playwright-acceptance-tests | |
| run: docker compose logs > docker-compose-logs.txt 2>&1 || true | |
| - name: Tear down | |
| if: always() | |
| working-directory: playwright-acceptance-tests | |
| run: docker compose down | |
| - name: Upload reports | |
| if: always() | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: playwright-acceptance-reports | |
| path: | | |
| playwright-acceptance-tests/reports | |
| playwright-acceptance-tests/docker-compose-logs.txt | |
| if-no-files-found: warn |