From ff90e8aafdffbae7b7306c37dfd9dbae1468e0f8 Mon Sep 17 00:00:00 2001 From: utensil Date: Mon, 14 Oct 2024 11:15:11 +0800 Subject: [PATCH] Report only from Linux; don't run coverage for other platforms --- .github/workflows/main.yml | 7 ++++++- justfile | 6 ++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1da7148..58c0892 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -97,10 +97,15 @@ jobs: - name: Run CI run: | just ci + - name: Report to DeepSource + if: runner.os == 'Linux' + run: | deepsource report --analyzer test-coverage --key rust --value-file lcov.info env: DEEPSOURCE_DSN: ${{ secrets.DEEPSOURCE_DSN }} - - uses: codecov/codecov-action@v4 + - name: Report coverage to Codecov + if : runner.os == 'Linux' + uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} # required files: lcov.info diff --git a/justfile b/justfile index 6adef89..775f4f2 100644 --- a/justfile +++ b/justfile @@ -7,9 +7,15 @@ export BINSTALL_DISABLE_TELEMETRY := "true" default: just list +[linux] ci: just cov +[macos] +[windows] +ci: + just test + [group('rust'), no-cd] test: just test-nightly