11name : CI
2- on : [push, pull_request]
2+ on : [pull_request]
33
44env :
55 SEQ_DB : sequelize_test
@@ -11,28 +11,30 @@ jobs:
1111 strategy :
1212 fail-fast : false
1313 matrix :
14- combination : ['v5', 'v6', 'v6 with TS']
15- name : SQLite (${{ matrix.combination }})
14+ # node 10 is the minimum supported version for Sequelize 6
15+ # node 14 is the minimum supported version for Sequelize 7
16+ # node 16 is latest LTS (to keep updated)
17+ node : [10, 14, 16]
18+ name : SQLite (sequelize 6 & 7, node ${{ matrix.node }})
1619 runs-on : ubuntu-latest
1720 env :
1821 DIALECT : sqlite
19- CI_COMBINATION : ${{ matrix.combination }}
2022 steps :
2123 - uses : actions/checkout@v2
2224 - uses : actions/setup-node@v1
2325 with :
24- node-version : 12 .x
26+ node-version : 14 .x
2527 - run : /bin/bash ./setup/prepare-ci.sh
2628 - name : Execute SSCCE
27- run : npm run ci
29+ run : npm run _test
2830 test-postgres :
2931 strategy :
3032 fail-fast : false
3133 matrix :
3234 postgres-version : [9.5, 10] # Does not work with 12
3335 native : [true, false]
34- combination : ['v5', 'v6', 'v6 with TS' ]
35- name : Postgres ${{ matrix.postgres-version }}${{ matrix.native && ' (native)' || '' }} (${{ matrix.combination }})
36+ node : [10, 14, 16 ]
37+ name : Postgres ${{ matrix.postgres-version }}${{ matrix.native && ' (native)' || '' }} (sequelize 6 & 7, node ${{ matrix.node }})
3638 runs-on : ubuntu-latest
3739 services :
3840 postgres :
@@ -46,25 +48,24 @@ jobs:
4648 options : --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
4749 env :
4850 DIALECT : ${{ matrix.native && 'postgres-native' || 'postgres' }}
49- CI_COMBINATION : ${{ matrix.combination }}
5051 steps :
5152 - run : PGPASSWORD=sequelize_test psql -h localhost -p 5432 -U sequelize_test sequelize_test -c '\l'
5253 - uses : actions/checkout@v2
53- - uses : actions/setup-node@v1
54+ - uses : actions/setup-node@v3
5455 with :
55- node-version : 12.x
56+ node-version : ${{ matrix.node }}
5657 - run : /bin/bash ./setup/prepare-ci.sh
5758 - name : Execute SSCCE
58- run : npm run ci
59+ run : npm run _test
5960 test-mysql-mariadb :
6061 strategy :
6162 fail-fast : false
6263 matrix :
64+ node : [10, 14, 16]
6365 db :
6466 - ' { name: "MySQL 5.7", image: "mysql:5.7", dialect: "mysql" }'
6567 - ' { name: "MariaDB 10.3", image: "mariadb:10.3", dialect: "mariadb" }'
66- combination : ['v5', 'v6', 'v6 with TS']
67- name : ${{ fromJson(matrix.db).name }} (${{ matrix.combination }})
68+ name : ${{ fromJson(matrix.db).name }} (node ${{ matrix.node }})
6869 runs-on : ubuntu-latest
6970 services :
7071 mysql :
@@ -79,23 +80,22 @@ jobs:
7980 options : --health-cmd="mysqladmin -usequelize_test -psequelize_test status" --health-interval 10s --health-timeout 5s --health-retries 5 --tmpfs /var/lib/mysql:rw
8081 env :
8182 DIALECT : ${{ fromJson(matrix.db).dialect }}
82- CI_COMBINATION : ${{ matrix.combination }}
8383 steps :
8484 - run : mysql --host 127.0.0.1 --port 3306 -uroot -psequelize_test -e "GRANT ALL ON *.* TO 'sequelize_test'@'%' with grant option; FLUSH PRIVILEGES;"
8585 - uses : actions/checkout@v2
86- - uses : actions/setup-node@v1
86+ - uses : actions/setup-node@v3
8787 with :
88- node-version : 12.x
88+ node-version : ${{ matrix.node }}
8989 - run : /bin/bash ./setup/prepare-ci.sh
9090 - name : Execute SSCCE
91- run : npm run ci
91+ run : npm run _test
9292 test-mssql :
9393 strategy :
9494 fail-fast : false
9595 matrix :
96+ node : [10, 14, 16]
9697 mssql-version : [2017, 2019]
97- combination : ['v5', 'v6', 'v6 with TS']
98- name : MSSQL ${{ matrix.mssql-version }} (${{ matrix.combination }})
98+ name : MSSQL ${{ matrix.mssql-version }} (sequelize 6 & 7, node ${{ matrix.node }})
9999 runs-on : ubuntu-latest
100100 services :
101101 mssql :
@@ -113,13 +113,12 @@ jobs:
113113 --health-retries 10
114114 env :
115115 DIALECT : mssql
116- CI_COMBINATION : ${{ matrix.combination }}
117116 steps :
118117 - run : /opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P "Password12!" -Q "CREATE DATABASE sequelize_test; ALTER DATABASE sequelize_test SET READ_COMMITTED_SNAPSHOT ON;"
119118 - uses : actions/checkout@v2
120- - uses : actions/setup-node@v1
119+ - uses : actions/setup-node@v3
121120 with :
122- node-version : 12.x
121+ node-version : ${{ matrix.node }}
123122 - run : /bin/bash ./setup/prepare-ci.sh
124123 - name : Execute SSCCE
125- run : npm run ci
124+ run : npm run _test
0 commit comments