-
-
Notifications
You must be signed in to change notification settings - Fork 197
122 lines (116 loc) · 2.91 KB
/
checks.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
116
117
118
119
120
121
122
name: test
on:
- push
- pull_request
- workflow_call
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 21
- run: npm install
- run: npm run lint
typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 21
- run: npm install
- run: npm run typecheck
test-postgres:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [20, 21]
postgres-version: [11, 14]
services:
postgres:
image: postgres:${{ matrix.postgres-version }}
env:
POSTGRES_DB: lucid
POSTGRES_USER: virk
POSTGRES_PASSWORD: secret
ports:
- 5432:5432
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: npm install
- name: Run Postgres Tests
run: npm run test:pg
test-mysql:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
mysql: [{ version: '5.7', command: 'mysql_legacy' }, { version: '8.0', command: 'mysql' }]
node-version: [20, 21]
services:
mysql:
image: mysql:${{ matrix.mysql.version }}
env:
MYSQL_DATABASE: lucid
MYSQL_USER: virk
MYSQL_PASSWORD: secret
MYSQL_ROOT_PASSWORD: secret
MYSQL_PORT: 3306
ports:
- '3306:3306'
- '3308:3306'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: npm install
- name: Run Mysql Tests
run: npm run test:${{ matrix.mysql.command }}
test-sqlite:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
lib: ['sqlite', 'better_sqlite']
node-version: [20, 21]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: npm install
- name: Run Sqlite Tests
run: npm run test:${{ matrix.lib }}
test-mssql:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [20, 21]
services:
mssql:
image: mcr.microsoft.com/mssql/server:2019-latest
env:
SA_PASSWORD: 'secrearandom&233passwordt'
ACCEPT_EULA: 'Y'
ports:
- '1433:1433'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: npm install
- name: Run Mssql Tests
run: npm run test:mssql