-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (54 loc) · 1.39 KB
/
test.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Test
on:
push:
branches:
- '**'
defaults:
run:
working-directory: ./web
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-22.04
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.x
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: 1.0.35
-
name: Setup end-to-end testing
run: make test_e2e_setup
-
name: Wait for the apps in docker healthy
run: timeout 60s sh -c 'until docker ps | grep rss-bookmarkr-web | grep -q healthy; do echo "Waiting for container to be healthy..."; sleep 2; done'
-
name: Restore dotnet tool
run: dotnet tool restore
-
name: Migrate database schema
run: |
mv migrondi.e2e.json migrondi.json
make migrate_up
-
name: Install dependencies
run: bun install --frozen-lockfile
-
name: Install Playwright Browsers
run: |
bunx playwright install
bunx playwright install-deps
-
name: Run Playwright tests
run: PAGE_URL=http://localhost:8080 bunx playwright test --reporter list
-
name: Teardown end-to-end testing
if: always()
run: make test_e2e_teardown