chore(repo): implement CI w/ gitlab CI

This commit is contained in:
M. George Hansen 2025-08-20 09:15:43 +12:00
parent 35273f525d
commit 057fc31c59
Signed by: mgeorgehansen
SSH key fingerprint: SHA256:JlIGiQLPyQ2RHTH3a2oVlb20Xkh9Glr8DUF4YTXHJxM
5 changed files with 25 additions and 2 deletions

View file

@ -10,3 +10,7 @@ end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.{yaml,yml}]
indent_style = space
indent_size = 2

1
.gitignore vendored
View file

@ -36,6 +36,7 @@
!/flake.lock
### Repository configuration ###
!/.gitlab-ci.yml
!/.husky/commit-msg
!/conventional.config.js

18
.gitlab-ci.yml Normal file
View 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

View file

@ -20,7 +20,7 @@
],
"scripts": {
"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",
"prepack": "npm run build"
},

View file

@ -21,7 +21,7 @@
],
"scripts": {
"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",
"prepack": "npm run build"
}