-
Notifications
You must be signed in to change notification settings - Fork 13
57 lines (55 loc) · 1.86 KB
/
test.yaml
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Playwright Tests
on:
# TODO: uncomment below actual branch constraints
# push:
# branches:
# - develop
# - staging
# - master
pull_request:
branches:
# TODO: uncomment below actual branch constraints
# types: [opened]
# - develop
# - staging
# - master
# TODO: comment out testing branch constraints
- '**'
jobs:
# TODO: Add something like https://github.com/JakePartusch/wait-for-netlify-action
test:
# TODO: Remove this when playwright tests are working again
if: false
timeout-minutes: 60
runs-on: ubuntu-latest
env:
WEBAPP_URL: https://deploy-preview-740--tezos-homebase.netlify.app
# TODO: uncomment below actual branch constraints
# ${{
# github.event_name == 'pull_request' && 'https://deploy-preview-${{ github.event.number }}--tezos-homebase.netlify.app' ||
# github.ref == 'refs/heads/develop' && 'https://develop--tezos-homebase.netlify.app' ||
# github.ref == 'refs/heads/staging' && 'https://staging--tezos-homebase.netlify.app' ||
# github.ref == 'refs/heads/master' && 'https://master--tezos-homebase.netlify.app' }}
steps:
- uses: actions/checkout@v4
with:
repository: dOrgTech/homebase-app-tests
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Install Playwright
run: npx playwright install --with-deps
- name: TC01 - Run Playwright tests
run: npm run test:tc01
- name: TC02 - Run Playwright tests
run: npm run test:tc02
- name: TC03 - Run Playwright tests
run: npm run test:tc03
- name: TC04 - Run Playwright tests
run: npm run test:tc04
- name: TC05 - Run Playwright tests
run: npm run test:tc05
- name: TC06 - Run Playwright tests
run: npm run test:tc06