diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 88910bd..2c6dd84 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f635ce1..7a621c7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 @@ -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: