From 329d3ae4e47353c04a04493d7fd4fd24e9670e57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fa=CC=81bio=20Madeira?= Date: Fri, 1 Nov 2024 15:22:04 +0000 Subject: [PATCH] cicd: adds test stage --- .github/workflows/build.yml | 5 +++++ .gitlab-ci.yml | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) 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: