mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-09 10:32:49 +00:00
ci: add test stage
This commit is contained in:
@@ -4,10 +4,16 @@ before_script:
|
||||
- npm ci
|
||||
|
||||
stages:
|
||||
- test
|
||||
- audit
|
||||
- publish
|
||||
- deploy
|
||||
|
||||
eslint-config:
|
||||
stage: test
|
||||
script:
|
||||
- npm test
|
||||
|
||||
audit:
|
||||
stage: audit
|
||||
script:
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"scripts": {
|
||||
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md && git commit -m 'docs: update changelog'",
|
||||
"test": "eslint -c index.js test/test-file.ts",
|
||||
"prepublishOnly": "npm ci",
|
||||
"prepublishOnly": "npm ci && npm test",
|
||||
"postversion": "npm run changelog",
|
||||
"preversion": "npm run prepublishOnly",
|
||||
"push": "git push && git push origin \"v$npm_package_version\""
|
||||
|
||||
Reference in New Issue
Block a user