Skip to content

Test e2e

Test e2e #396

Workflow file for this run

name: Test e2e
on:
schedule:
- cron: '30 1 * * *'
workflow_dispatch:
jobs:
test-e2e:
runs-on: ubuntu-20.04
name: Test e2e
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: 'Install pnpm'
uses: pnpm/action-setup@129abb77bf5884e578fcaf1f37628e41622cc371
with:
version: 8
- name: Install node
uses: actions/setup-node@v4
with:
node-version-file: '.node-version'
- name: Generate random paths
run: |
timestamp=$(date +%s)
echo TEST_ID=$timestamp >> $GITHUB_OUTPUT
id: random-path-generator
- name: Install dependencies
run: |
pnpm install --frozen-lockfile
npx playwright install
env:
CI: true
- name: Run test
run: pnpm test:e2e
env:
TEST_CLIENT_DOMAIN: ${{secrets.TEST_CLIENT_DOMAIN}}
TEST_ID: ${{steps.random-path-generator.outputs.TEST_ID}}
- name: Report Status
if: always()
uses: ravsamhq/notify-slack-action@0d9c6ff1de9903da88d24c0564f6e83cb28faca9
with:
status: ${{ job.status }}
notification_title: "Segment E2E Test has {status_message}"
# notify_when: "failure" # Possible values(can be an array of values(comma seperated) or singular): success, failure, cancelled, skipped
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}