-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (28 loc) · 783 Bytes
/
Copy pathtest.yml
File metadata and controls
33 lines (28 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: test
on:
push:
branches: ["release"]
pull_request:
branches: ["release"]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Upload codecov
run: |
cargo +stable install cargo-llvm-cov
cargo llvm-cov --lcov --output-path coverage.info
curl https://deepsource.io/cli | sh
./bin/deepsource report --analyzer test-coverage --key rust --value-file ./coverage.info
env:
DEEPSOURCE_DSN: ${{ secrets.DEEPSOURCE_DSN }}