0
Fork 0
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:
Seth Falco 2023-03-20 09:45:25 +00:00
parent a8cd95a688
commit 1429378156
No known key found for this signature in database
GPG key ID: DE1C217EFF01FEC8
2 changed files with 21 additions and 3 deletions

View file

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

View file

@ -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