Skip to content

Commit

Permalink
Report only from Linux; don't run coverage for other platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
utensil committed Oct 14, 2024
1 parent 1171851 commit ff90e8a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ff90e8a

Please sign in to comment.