Skip to content

Commit

Permalink
ci: add test and lint jobs to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
SethFalco committed Mar 20, 2023
1 parent a8cd95a commit 1429378
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ insert_final_newline = true
charset = utf-8
indent_style = space
indent_size = 4

[*.{yml,yaml}]
indent_size = 2
17 changes: 16 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
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 ci --ignore-scripts --force && npm run test
script: npm run test
only:
- merge_requests

0 comments on commit 1429378

Please sign in to comment.