mirror of
https://github.com/fastmail/Squire.git
synced 2024-12-22 07:13:08 -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
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
|
||||
[*.{yml,yaml}]
|
||||
indent_size = 2
|
||||
|
|
|
@ -1,5 +1,20 @@
|
|||
test:
|
||||
stage: test
|
||||
script: npm ci --ignore-scripts --force && npm run test
|
||||
before_script:
|
||||
- npm ci --ignore-scripts --force
|
||||
|
||||
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:
|
||||
- merge_requests
|
||||
|
|
Loading…
Reference in a new issue