From a2eadf76fe49129442b764c1182dd779eaa4e6a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20L=C3=A4derach?= Date: Tue, 22 Mar 2022 14:06:46 +0100 Subject: [PATCH] feat(ci): use matrix build to target databases --- .github/workflows/{node.js.yml => ci.yml} | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) rename .github/workflows/{node.js.yml => ci.yml} (62%) diff --git a/.github/workflows/node.js.yml b/.github/workflows/ci.yml similarity index 62% rename from .github/workflows/node.js.yml rename to .github/workflows/ci.yml index 571f6dd5..d204d88c 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/ci.yml @@ -14,8 +14,19 @@ jobs: strategy: matrix: - node-version: [12.x, 14.x, 16.x] - # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + include: + - 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: - uses: actions/checkout@v2 @@ -24,5 +35,7 @@ jobs: with: node-version: ${{ matrix.node-version }} cache: 'npm' + env: + DATABASE_TYPE: ${{ matrix.db-type }} - run: npm install - run: npm run build --if-present