Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
132 changes: 66 additions & 66 deletions .github/workflows/build_test_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -318,79 +318,79 @@ jobs:
steps:
- run: echo "${{ inputs.environment || 'Staging' }}"

testE2E:
needs: deploy
timeout-minutes: 60
runs-on: ubuntu-latest
if: ${{ inputs.environment != 'Production' }}
strategy:
matrix:
shard: [1, 2, 3, 4]
steps:
- uses: actions/cache@v4
timeout-minutes: 2
id: restore-install
with:
path: ./*
key: ${{ github.sha }}-${{ github.run_number }}
# testE2E:
# needs: deploy
# timeout-minutes: 60
# runs-on: ubuntu-latest
# if: ${{ inputs.environment != 'Production' }}
# strategy:
# matrix:
# shard: [1, 2, 3, 4]
# steps:
# - uses: actions/cache@v4
# timeout-minutes: 2
# id: restore-install
# with:
# path: ./*
# key: ${{ github.sha }}-${{ github.run_number }}

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
check-latest: true
cache: 'yarn'
# - name: Set up Node.js
# uses: actions/setup-node@v4
# with:
# node-version: 20
# check-latest: true
# cache: 'yarn'

# TODO: cache these?
- name: Install Playwright Browsers
run: yarn playwright install --with-deps
# # TODO: cache these?
# - name: Install Playwright Browsers
# run: yarn playwright install --with-deps

- name: Run Playwright tests
run: yarn playwright test --shard=${{ matrix.shard }}/${{ strategy.job-total }}
env:
PLAYWRIGHT_TEST_BASE_URL: ${{ github.event_name == 'pull_request' && format('https://pr-{0}---ms-server-staging-c4f6qdpj7q-ew.a.run.app', github.event.number) || 'https://staging.proceed-labs.org' }}
# - name: Run Playwright tests
# run: yarn playwright test --shard=${{ matrix.shard }}/${{ strategy.job-total }}
# env:
# PLAYWRIGHT_TEST_BASE_URL: ${{ github.event_name == 'pull_request' && format('https://pr-{0}---ms-server-staging-c4f6qdpj7q-ew.a.run.app', github.event.number) || 'https://staging.proceed-labs.org' }}

- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: all-blob-reports-${{ matrix.shard }}
path: blob-report
retention-days: 1
# - uses: actions/upload-artifact@v4
# if: ${{ !cancelled() }}
# with:
# name: all-blob-reports-${{ matrix.shard }}
# path: blob-report
# retention-days: 1

create-report:
name: 📔 Create test report
if: always()
needs: [testE2E]
# create-report:
# name: 📔 Create test report
# if: always()
# needs: [testE2E]

runs-on: ubuntu-latest
steps:
- uses: actions/cache@v4
timeout-minutes: 2
id: restore-install
with:
path: ./*
key: ${{ github.sha }}-${{ github.run_number }}
# runs-on: ubuntu-latest
# steps:
# - uses: actions/cache@v4
# timeout-minutes: 2
# id: restore-install
# with:
# path: ./*
# key: ${{ github.sha }}-${{ github.run_number }}

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
check-latest: true
cache: 'yarn'
# - name: Set up Node.js
# uses: actions/setup-node@v4
# with:
# node-version: 20
# check-latest: true
# cache: 'yarn'

- name: Download blob reports from GitHub Actions Artifacts
uses: actions/download-artifact@v4
with:
pattern: all-blob-reports-*
merge-multiple: true
path: all-blob-reports
# - name: Download blob reports from GitHub Actions Artifacts
# uses: actions/download-artifact@v4
# with:
# pattern: all-blob-reports-*
# merge-multiple: true
# path: all-blob-reports

- name: Merge into HTML Report
run: npx playwright merge-reports --reporter html ./all-blob-reports
# - name: Merge into HTML Report
# run: npx playwright merge-reports --reporter html ./all-blob-reports

- name: Upload HTML report
uses: actions/upload-artifact@v4
with:
name: html-report--attempt-${{ github.run_attempt }}
path: playwright-report
retention-days: 7
# - name: Upload HTML report
# uses: actions/upload-artifact@v4
# with:
# name: html-report--attempt-${{ github.run_attempt }}
# path: playwright-report
# retention-days: 7
Loading