-
-
Notifications
You must be signed in to change notification settings - Fork 528
67 lines (66 loc) · 2.27 KB
/
ci.yml
File metadata and controls
67 lines (66 loc) · 2.27 KB
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
name: CI
on: pull_request
jobs:
test-postgres:
strategy:
fail-fast: false
matrix:
node-version: [10, 24]
sequelize-version: [5, latest]
name: Postgres (Node ${{ matrix.node-version }}, Sequelize ${{ matrix.sequelize-version }})
runs-on: ubuntu-latest
env:
DIALECT: postgres
SEQ_PORT: 54320
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
- run: if [ "${{ matrix.node-version }}" = "10" ]; then npm install -g npm@7; fi
- run: npm ci
- run: npm install sequelize@${{ matrix.sequelize-version }}
- run: docker compose up -d ${DIALECT}
- run: docker run --link ${DIALECT}:db --net cli_default jwilder/dockerize -wait tcp://${DIALECT}:${SEQ_PORT::-1} -timeout 2m
- run: npm test
test-mysql:
strategy:
fail-fast: false
matrix:
node-version: [10, 24]
sequelize-version: [5, latest]
name: MySQL (Node ${{ matrix.node-version }}, Sequelize ${{ matrix.sequelize-version }})
runs-on: ubuntu-latest
env:
DIALECT: mysql
SEQ_PORT: 33060
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
- run: if [ "${{ matrix.node-version }}" = "10" ]; then npm install -g npm@7; fi
- run: npm ci
- run: npm install sequelize@${{ matrix.sequelize-version }}
- run: docker compose up -d ${DIALECT}
- run: docker run --link ${DIALECT}:db --net cli_default jwilder/dockerize -wait tcp://${DIALECT}:${SEQ_PORT::-1} -timeout 2m
- run: npm test
test-sqlite:
strategy:
fail-fast: false
matrix:
node-version: [10, 24]
sequelize-version: [5, latest]
name: SQLite (Node ${{ matrix.node-version }}, Sequelize ${{ matrix.sequelize-version }})
runs-on: ubuntu-latest
env:
DIALECT: sqlite
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
- run: if [ "${{ matrix.node-version }}" = "10" ]; then npm install -g npm@7; fi
- run: npm ci
- run: npm install sequelize@${{ matrix.sequelize-version }}
- run: npm test