-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (57 loc) · 1.58 KB
/
pr.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
name: CI
on:
pull_request:
branches: ["*"]
push:
branches: ["main"]
merge_group:
env:
HUSKY: 0
jobs:
build:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:alpine
env:
POSTGRES_DB: typefusion
POSTGRES_PASSWORD: password
ports:
- 5432:5432
mysql:
image: mysql:latest
env:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: typefusion
ports:
- 3306:3306
clickhouse:
image: clickhouse/clickhouse-server:latest
env:
CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT: 1
CLICKHOUSE_USER: default
CLICKHOUSE_PASSWORD: password
ports:
- 8123:8123
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v2
- name: Setup Node 18
uses: actions/setup-node@v4
with:
node-version: 18
cache: "pnpm"
- name: Install deps
run: pnpm install
- name: Build and lint and type-check
run: pnpm build && pnpm turbo --env-mode=loose lint test-ci typecheck
env:
PG_DATABASE_URL: postgres://postgres:password@localhost:5432/typefusion?sslmode=disable
MYSQL_DATABASE_URL: mysql://root:password@localhost:3306/typefusion
CLICKHOUSE_DATABASE_URL: http://default:password@localhost:8123/
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}