Skip to content

Commit a7813da

Browse files
committed
Add npm test script
1 parent 32d785b commit a7813da

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/ci_antora.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ jobs:
1919
node-version: '14.x'
2020
- name: Install dependencies
2121
run: npm install
22-
- name: Run build script
23-
run: npm run build
22+
- name: Run test script
23+
run: npm test
2424

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"name": "decidim-documentation",
33
"private": true,
44
"scripts": {
5-
"build": "antora antora-playbook.yml $@"
5+
"build": "antora antora-playbook.yml $@",
6+
"test": "errlog=$(mktemp) && npm run build &2> $errlog && if [ -e $errlog ] ; then exit 1 ; else exit 0 ; fi"
67
},
78
"devDependencies": {
89
"@antora/cli": "^3.0.0",

0 commit comments

Comments
 (0)