Daily E2E Test #105
This file contains 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: Daily E2E Test | |
on: | |
schedule: | |
- cron: '30 1 * * *' | |
workflow_dispatch: | |
jobs: | |
build-and-test-e2e-mock: | |
runs-on: ubuntu-20.04 | |
name: Test e2e for PR using mock app | |
steps: | |
- uses: actions/checkout@v4 | |
- name: 'Install pnpm' | |
uses: pnpm/action-setup@129abb77bf5884e578fcaf1f37628e41622cc371 | |
with: | |
version: 8 | |
- name: Install node | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.node-version' | |
- name: Install dependencies | |
run: pnpm install | |
- name: Install Playwright | |
run: pnpm exec playwright install | |
- name: Run test | |
run: pnpm test:mock-e2e | |
env: | |
TEST_DOMAIN: 'https://${{secrets.FPJS_AKAMAI_MOCK_TEST_DOMAIN}}' | |
INTEGRATION_PATH: ${{secrets.INTEGRATION_PATH}} | |
RESULT_PATH: ${{secrets.RESULT_PATH}} | |
AGENT_PATH: ${{secrets.AGENT_PATH}} | |
API_URL: ${{secrets.MOCK_FPCDN}} | |
report-status: | |
needs: build-and-test-e2e-mock | |
if: always() | |
uses: fingerprintjs/dx-team-toolkit/.github/workflows/report-workflow-status.yml@v1 | |
with: | |
notification_title: 'Akamai E2E Test: {status_message}' | |
job_status: ${{ needs.build-and-test-e2e-mock.result }} | |
secrets: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} |