diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5335b6d8..6d6b6952 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,10 +4,16 @@ before_script: - npm ci stages: + - test - audit - publish - deploy +eslint-config: + stage: test + script: + - npm test + audit: stage: audit script: diff --git a/package.json b/package.json index 991ff8fa..a1cc7dfc 100644 --- a/package.json +++ b/package.json @@ -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\""