-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
115 lines (90 loc) · 2.6 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
name: Test
env:
REDIS_URL: ${{ secrets.REDIS_URL }}
DATABASE_URL: ${{ secrets.TEST_DATABASE_URL }}
TEST_AUTH_TOKEN: ${{ secrets.TEST_AUTH_TOKEN }}
TEST_SUSPENDED_AUTH_TOKEN: ${{ secrets.TEST_SUSPENDED_AUTH_TOKEN }}
LENS_DATABASE_PASSWORD: ${{ secrets.LENS_DATABASE_PASSWORD }}
CLICKHOUSE_URL: ${{ secrets.CLICKHOUSE_URL }}
CLICKHOUSE_PASSWORD: ${{ secrets.CLICKHOUSE_PASSWORD }}
on:
push:
branches: [main]
pull_request:
types: [opened, synchronize]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
api-test:
name: API Test
runs-on: ubuntu-latest
steps:
- name: Checkout 🚪
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js, pnpm and dependencies 🌸
uses: ./.github/actions/setup-pnpm
- name: Flush Redis 🧹
working-directory: ./packages/db
run: pnpm redis:flush
- name: Seed DB 🌱
working-directory: ./packages/db
run: pnpm prisma:seed
# - name: Run API Tests 🧪
# working-directory: ./apps/api
# run: pnpm test
web-test:
name: Web Test
runs-on: ubuntu-latest
steps:
- name: Checkout 🚪
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js, pnpm and dependencies 🌸
uses: ./.github/actions/setup-pnpm
- name: Run Web Tests 🧪
working-directory: ./apps/web
run: pnpm test
og-test:
name: OG Test
runs-on: ubuntu-latest
steps:
- name: Checkout 🚪
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js, pnpm and dependencies 🌸
uses: ./.github/actions/setup-pnpm
- name: Run OG Tests 🧪
working-directory: ./apps/og
run: pnpm test
data-test:
name: Data Test
runs-on: ubuntu-latest
steps:
- name: Checkout 🚪
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js, pnpm and dependencies 🌸
uses: ./.github/actions/setup-pnpm
- name: Run Data Tests 🧪
working-directory: ./packages/data
run: pnpm test
helpers-test:
name: Helpers Test
runs-on: ubuntu-latest
steps:
- name: Checkout 🚪
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js, pnpm and dependencies 🌸
uses: ./.github/actions/setup-pnpm
- name: Run Helpers Tests 🧪
working-directory: ./packages/helpers
run: pnpm test