mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 12:47:13 +01:00
feat(ci): use matrix build to target databases
This commit is contained in:
parent
65454842b0
commit
a2eadf76fe
1 changed files with 15 additions and 2 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue