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
|
|
@ -10,3 +10,7 @@ end_of_line = lf
|
||||||
charset = utf-8
|
charset = utf-8
|
||||||
trim_trailing_whitespace = true
|
trim_trailing_whitespace = true
|
||||||
insert_final_newline = true
|
insert_final_newline = true
|
||||||
|
|
||||||
|
[*.{yaml,yml}]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
|
|
||||||
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -36,6 +36,7 @@
|
||||||
!/flake.lock
|
!/flake.lock
|
||||||
|
|
||||||
### Repository configuration ###
|
### Repository configuration ###
|
||||||
|
!/.gitlab-ci.yml
|
||||||
!/.husky/commit-msg
|
!/.husky/commit-msg
|
||||||
!/conventional.config.js
|
!/conventional.config.js
|
||||||
|
|
||||||
|
|
|
||||||
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
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc --build",
|
"build": "tsc --build",
|
||||||
"test": "tsc --noEmit --project tests/tsconfig.json && node --experimental-strip-types --disable-warning=ExperimentalWarning --test",
|
"test": "tsc --noEmit --project tests/tsconfig.json && node --experimental-strip-types --disable-warning=ExperimentalWarning --test --test-reporter=dot",
|
||||||
"pretest": "npm run build",
|
"pretest": "npm run build",
|
||||||
"prepack": "npm run build"
|
"prepack": "npm run build"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc --build",
|
"build": "tsc --build",
|
||||||
"test": "tsc --noEmit --project tests/tsconfig.json && node --experimental-strip-types --disable-warning=ExperimentalWarning --test",
|
"test": "tsc --noEmit --project tests/tsconfig.json && node --experimental-strip-types --disable-warning=ExperimentalWarning --test --test-reporter=dot",
|
||||||
"pretest": "npm run build",
|
"pretest": "npm run build",
|
||||||
"prepack": "npm run build"
|
"prepack": "npm run build"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue