Skip to content

AUT-5433: Add dual session store (and enable in dev and staging) #291

AUT-5433: Add dual session store (and enable in dev and staging)

AUT-5433: Add dual session store (and enable in dev and staging) #291

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@d979d5b3a71173a29b74b5b88418bfda9437d885 # v6.1.1
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@fa648b43de3d4d023bcb3f89ed6940096949c419 # v2.1.5
- 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