summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Wernick <justin@worthe-it.co.za>2023-06-04 21:52:16 +0200
committerJustin Wernick <justin@worthe-it.co.za>2023-06-04 21:52:16 +0200
commitc482f056c69d9717dc6f648ab9163703e79f2514 (patch)
treee4887e15164f68bac55e667515b2314a331c807d
parent59c44d99a98f8346419d07a76a8a7a50de00a010 (diff)
Restructure test order
- Use pretest to run linting - Run tests before audit in CI
-rw-r--r--.woodpecker.yml7
-rw-r--r--package.json3
2 files changed, 4 insertions, 6 deletions
diff --git a/.woodpecker.yml b/.woodpecker.yml
index 045171d..c8cc222 100644
--- a/.woodpecker.yml
+++ b/.woodpecker.yml
@@ -1,13 +1,10 @@
pipeline:
- install:
+ test:
image: node:lts
commands:
- npm install
+ - npm test
audit:
image: node:lts
commands:
- npm audit
- test:
- image: node:lts
- commands:
- - npm test
diff --git a/package.json b/package.json
index 1c851f6..0237bc0 100644
--- a/package.json
+++ b/package.json
@@ -4,7 +4,8 @@
"description": "A library for parsing and validating South African ID Numbers.",
"main": "south-african-id-parser.js",
"scripts": {
- "test": "mocha && jshint **/*.js"
+ "pretest": "jshint **/*.js",
+ "test": "mocha"
},
"keywords": [
"South Africa",