Skip to content

Commit 52d07c9

Browse files
committed
Merge branch 'main' of https://github.com/LabMaker/Labmaker
2 parents 9974ca4 + cc57d6e commit 52d07c9

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/node.js.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: Node.js CI
5+
env:
6+
## Environment variable
7+
DATABASE_URL: ${{secrets.DATABASE_URL}}
8+
9+
on:
10+
push:
11+
branches: [ main ]
12+
pull_request:
13+
branches: [ main ]
14+
15+
jobs:
16+
build:
17+
18+
runs-on: ubuntu-latest
19+
20+
strategy:
21+
matrix:
22+
node-version: [14.x, 16.x]
23+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
24+
25+
steps:
26+
- uses: actions/checkout@v2
27+
- name: Use Node.js ${{ matrix.node-version }}
28+
uses: actions/setup-node@v2
29+
with:
30+
node-version: ${{ matrix.node-version }}
31+
cache: 'npm'
32+
- run: npm ci
33+
- run: npx prisma migrate deploy #Update Public Database with migrations from dev
34+
- run: npx prisma generate
35+
- run: npm run build --if-present
36+
- run: npm test

0 commit comments

Comments
 (0)