Skip to content

Commit

Permalink
cicd: adds test stage
Browse files Browse the repository at this point in the history
  • Loading branch information
biomadeira committed Nov 1, 2024
1 parent db2c1c9 commit 329d3ae
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ jobs:
- name: Check code format
run: npm run format
#----------------------------------------------
# Run tests with Jest
#----------------------------------------------
- name: Run tests with Jest
run: npm test
#----------------------------------------------
# Build Module
#----------------------------------------------
- name: Build module
Expand Down
8 changes: 7 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ before_script:

stages:
- check
# - test
- test
# - tag
# building the ES modules and node CLI (also ES module now, from commonJS)
- build
Expand Down Expand Up @@ -58,6 +58,12 @@ format:
- npm run format
allow_failure: false

test:
stage: test
script:
- npm test
allow_failure: false

build_module:
stage: build
script:
Expand Down

0 comments on commit 329d3ae

Please sign in to comment.