-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (58 loc) · 1.85 KB
/
playwright.yml
File metadata and controls
68 lines (58 loc) · 1.85 KB
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
58
59
60
61
62
63
64
65
66
67
68
name: E2E Tests
on:
pull_request:
types: [opened, reopened]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
services:
postgres:
image: postgres:17
env:
POSTGRES_USER: toolkit
POSTGRES_PASSWORD: toolkit
ports:
- 5432:5432
options: >-
--health-cmd="pg_isready"
--health-interval=10s
--health-timeout=5s
--health-retries=5
env:
DATA_TOOLKIT_URL: http://127.0.0.1:3000/
CSPACE_URL: https://anthro.collectionspace.org/
CSPACE_ADMIN: admin@anthro.collectionspace.org
CSPACE_PASSWORD: Administrator
steps:
- uses: actions/checkout@v6
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- run: bin/setup --skip-server
- run: |
./bin/rails server -d
curl --retry 20 --retry-delay 10 --retry-all-errors http://127.0.0.1:3000
./bin/rake crud:import:manifest_registry[https://gist.githubusercontent.com/mark-cooper/0492cc97d53a47105dd29ca86799c8c7/raw/f376621f1c2e110f88fc1bdd10c5437f0abc99a5/meta-manifest2.json]
- uses: actions/setup-node@v6
with:
node-version: 22
- name: Install Playwright Browsers
working-directory: ./test/e2e
run: |
npm install
npx playwright install --with-deps
- name: Run Playwright tests
working-directory: ./test/e2e
run: |
npx playwright test --trace on tests/datatoolkit-tests.spec.ts
- uses: actions/upload-artifact@v7
if: ${{ failure() }}
with:
name: playwright-report
path: ./test/e2e/playwright-report/
retention-days: 7