-
Notifications
You must be signed in to change notification settings - Fork 6
39 lines (39 loc) · 1.17 KB
/
playwright.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
---
name: Playwright Tests
on:
deployment_status:
push:
defaults:
run:
working-directory: ./playwright
jobs:
test:
environment: staging
timeout-minutes: 60
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.41.2-jammy
# TODO: Refactor action to use updated logic for Login.gov
# when a service account to run tests is available for use.
# Issue: CRASH-337
if: true == false
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Create env file
run: |
touch .env
echo PW_XFD_2FA_ISSUER=${{ secrets.PW_XFD_2FA_ISSUER }} >> .env
echo PW_XFD_2FA_SECRET=${{ secrets.PW_XFD_2FA_SECRET }} >> .env
echo PW_XFD_PASSWORD=${{ secrets.PW_XFD_PASSWORD }} >> .env
echo PW_XFD_URL=${{ vars.PW_XFD_URL }}>> .env
echo PW_XFD_USER_ROLE=${{ vars.PW_XFD_USER_ROLE }} >> .env
echo PW_XFD_USERNAME=${{ secrets.PW_XFD_USERNAME }} >> .env
- name: Run your tests
run: npx playwright test
env:
HOME: /root