feat(ci): use matrix build to target databases
parent
65454842b0
commit
a2eadf76fe
|
@ -14,8 +14,19 @@ jobs:
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node-version: [12.x, 14.x, 16.x]
|
include:
|
||||||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
- node-version: 12.x
|
||||||
|
db-type: postgresql
|
||||||
|
- node-version: 12.x
|
||||||
|
db-type: mysql
|
||||||
|
- node-version: 14.x
|
||||||
|
db-type: postgresql
|
||||||
|
- node-version: 14.x
|
||||||
|
db-type: mysql
|
||||||
|
- node-version: 16.x
|
||||||
|
db-type: postgresql
|
||||||
|
- node-version: 16.x
|
||||||
|
db-type: mysql
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
@ -24,5 +35,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
|
env:
|
||||||
|
DATABASE_TYPE: ${{ matrix.db-type }}
|
||||||
- run: npm install
|
- run: npm install
|
||||||
- run: npm run build --if-present
|
- run: npm run build --if-present
|
Loading…
Reference in New Issue