From d9247d68ebf2cb2ec198252dd491279903bf69cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20LUDWIG?= Date: Fri, 16 Feb 2024 23:07:13 +0100 Subject: [PATCH] ci: setup .gitlab-ci.yml --- .gitlab-ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..d81b539 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,24 @@ +default: + image: "node:20.11.1" + +stages: + - "test" + +test: + stage: "test" + script: + - "npm clean-install" + - 'echo "${CI_COMMIT_MESSAGE}" | npm run lint:commit' + - "npm run lint:prettier" + - "npm run lint:eslint" + - "npm run lint:typescript" + - "npm run test" + artifacts: + paths: + - "coverage/" + reports: + coverage_report: + coverage_format: "cobertura" + path: "coverage/cobertura-coverage.xml" + junit: "junit.xml" + coverage: '/All files[^|]*\|[^|]*\s+([\d\.]+)/'