This repository has been archived by the owner on Oct 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (57 loc) · 1.55 KB
/
e2e.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Ayuskey E2E Test
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x, 19.x, 20.x]
python-version: [3.9]
services:
postgres:
image: postgres:15.1-alpine
ports:
- 5432:5432
env:
POSTGRES_DB: test-misskey
POSTGRES_HOST_AUTH_METHOD: trust
redis:
image: redis:alpine
ports:
- 6379:6379
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: pnpm/action-setup@v2.2.4
with:
version: 7
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
# キャッシュの調整が必要かも
- run: pnpm i
- run: pnpm build
- run: cp e2e/e2e.yml .config/default.yml
- run: pnpm migrateandstart &
- name: Use Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Run pip install
run: pip install -r requirements.txt
working-directory: ./e2e
- name: Setup playwright
run: python -m playwright install
working-directory: ./e2e
- name: Run E2E Test
run: pytest run.py --maxfail=1
working-directory: ./e2e
- name: Upload E2E ScreenShots
if: always()
uses: actions/upload-artifact@v3
with:
name: ScreenShots-${{ matrix.node-version }}
path: e2e/ScreenShots