From aa35d985f8782d65244896ba9c897d0f6abbbddc Mon Sep 17 00:00:00 2001 From: Lawrence <34475808+acodeninja@users.noreply.github.com> Date: Mon, 30 Sep 2024 11:09:06 +0100 Subject: [PATCH] ci: enable deepsource coverage checker (#20) * ci: enable deepsource coverage checker * ci: use actual commit rather than merge commit see: https://docs.deepsource.com/docs/analyzers-test-coverage#with-github-actions --- .deepsource.toml | 6 +++++- .github/workflows/quality-checks.yml | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.deepsource.toml b/.deepsource.toml index 4304133..373c4b6 100644 --- a/.deepsource.toml +++ b/.deepsource.toml @@ -7,4 +7,8 @@ name = "javascript" environment = [ "nodejs", "browser" - ] \ No newline at end of file + ] + +[[analyzers]] +name = "test-coverage" +enabled = true diff --git a/.github/workflows/quality-checks.yml b/.github/workflows/quality-checks.yml index 85f8ff6..9fb4a1c 100644 --- a/.github/workflows/quality-checks.yml +++ b/.github/workflows/quality-checks.yml @@ -22,6 +22,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha }} - uses: asdf-vm/actions/install@v3 - run: make init - run: make test/coverage/report