feat(ci): use matrix build to target databases

pull/1048/head
Lukas Läderach 2022-03-22 14:06:46 +01:00
parent 65454842b0
commit a2eadf76fe
1 changed files with 15 additions and 2 deletions

View File

@ -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