-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (40 loc) · 1.28 KB
/
web_ci_workflow.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Playwright Tests
on:
deployment_status:
jobs:
test:
timeout-minutes: 20
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Install Playwright Browsers
run: yarn web playwright install --with-deps
- name: Run Playwright Tests
shell: bash
env:
STAGE: ${{ github.event.deployment.environment }}
BASE_URL: ${{ github.event.deployment_status.target_url }}
DEADROP_API_URL: ${{ secrets.DEADROP_API_URL }}
REDIS_REST_URL: ${{ secrets.REDIS_REST_URL }}
REDIS_REST_TOKEN: ${{ secrets.REDIS_REST_TOKEN }}
run: |
export STAGE=$STAGE
echo $STAGE
export DEADROP_API_URL=$DEADROP_API_URL
echo $DEADROP_API_URL
export TEST_URI=$BASE_URL
echo $TEST_URI
export REDIS_REST_URL=$REDIS_REST_URL
export REDIS_REST_TOKEN=$REDIS_REST_TOKEN
CI=true yarn test:e2e --trace on
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: web/test-results/
retention-days: 30