From b45eab64b5202ebb8d22d52840112b5e32915f76 Mon Sep 17 00:00:00 2001 From: "P. Reis" Date: Mon, 15 Jul 2024 19:05:28 -0300 Subject: [PATCH] ci: add code coverage --- .gitlab-ci.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3ea52cd3..779bbcc3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -20,7 +20,10 @@ check: test: stage: test - script: deno task test + script: + - deno task test --coverage=cov_profile + - deno coverage cov_profile + coverage: /All files[^\|]*\|[^\|]*\s+([\d\.]+)/ variables: DITTO_NSEC: nsec1zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zygs4rm7hz artifacts: @@ -38,4 +41,5 @@ postgres: variables: DITTO_NSEC: nsec1zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zygs4rm7hz DATABASE_URL: postgres://postgres:postgres@postgres:5432/postgres - POSTGRES_HOST_AUTH_METHOD: trust \ No newline at end of file + POSTGRES_HOST_AUTH_METHOD: trust +