chore(repo): implement CI w/ gitlab CI
This commit is contained in:
parent
35273f525d
commit
057fc31c59
5 changed files with 25 additions and 2 deletions
18
.gitlab-ci.yml
Normal file
18
.gitlab-ci.yml
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
stages: [build, test]
|
||||
|
||||
build:
|
||||
stage: build
|
||||
cache: &cached-deps
|
||||
key:
|
||||
files: [package-lock.json]
|
||||
paths: [node_modules/]
|
||||
script:
|
||||
- npm ci
|
||||
- npm run build --workspaces --if-present
|
||||
|
||||
test:
|
||||
stage: test
|
||||
cache:
|
||||
<<: &cached-deps
|
||||
script:
|
||||
- npm run test --workspaces --if-present
|
||||
Loading…
Add table
Add a link
Reference in a new issue