-
-
Notifications
You must be signed in to change notification settings - Fork 36
35 lines (30 loc) · 1.11 KB
/
ci.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
name: CI
on:
push:
pull_request:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x, latest]
fail-fast: false
steps:
- uses: mirromutth/[email protected]
with:
mysql database: 'db_migrate_test' # Optional, default value is "test". The specified database which will be create
mysql root password: 'super123' # Required if "mysql user" is empty, default is empty. The root superuser password
character set server: 'utf8' # Optional, default value is 'utf8mb4'. The '--character-set-server' option for mysqld
collation server: 'utf8_general_ci' # Optional, default value is 'utf8mb4_general_ci'. The '--collation-server' option for mysqld
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm i -g [email protected]
- run: npm ci
- run: cp test/db.config.ci test/db.config.json
- run: npm test