-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (43 loc) · 1.16 KB
/
main.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
name: Build and Test
on: [push]
jobs:
build:
runs-on: ubuntu-latest
services:
mysql:
image: mysql:8.0
env:
MYSQL_ROOT_PASSWORD: ""
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=10
postgres:
image: postgres
env:
POSTGRES_PASSWORD: password
POSTGRES_USER: test
POSTGRES_DB: postgres
ports:
- 5432:5432
strategy:
matrix:
node-version: [20.x, 22.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- run: npm install
- run: npm run lint
- run: npm run build
- run: npm run test -w accel-web
- run: npm run generate:mysql
- run: npm run test:mysql
- run: npm run sample
- run: npm run generate:sqlite
- run: npm run test:sqlite
- run: npm run generate:pg
- run: npm run test:pg