mirror of
https://github.com/fastmail/Squire.git
synced 2025-01-03 05:00:13 -05:00
ci: add test and lint jobs to ci
This commit is contained in:
parent
a8cd95a688
commit
1429378156
2 changed files with 21 additions and 3 deletions
|
@ -10,3 +10,6 @@ insert_final_newline = true
|
||||||
charset = utf-8
|
charset = utf-8
|
||||||
indent_style = space
|
indent_style = space
|
||||||
indent_size = 4
|
indent_size = 4
|
||||||
|
|
||||||
|
[*.{yml,yaml}]
|
||||||
|
indent_size = 2
|
||||||
|
|
|
@ -1,5 +1,20 @@
|
||||||
test:
|
before_script:
|
||||||
stage: test
|
- npm ci --ignore-scripts --force
|
||||||
script: npm ci --ignore-scripts --force && npm run test
|
|
||||||
|
build:
|
||||||
|
stage: build
|
||||||
|
script: npm run build
|
||||||
|
only:
|
||||||
|
- merge_requests
|
||||||
|
|
||||||
|
lint:
|
||||||
|
stage: test
|
||||||
|
script: npm run lint
|
||||||
|
only:
|
||||||
|
- merge_requests
|
||||||
|
|
||||||
|
test:
|
||||||
|
stage: test
|
||||||
|
script: npm run test
|
||||||
only:
|
only:
|
||||||
- merge_requests
|
- merge_requests
|
||||||
|
|
Loading…
Reference in a new issue