Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix tarpaulin code coverage and add .vscode to gitignore #186

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
- ubuntu-latest
- windows-latest
rust:
- 1.61.0 # MSRV (also change in Cargo.toml)
- 1.66.0 # MSRV (also change in Cargo.toml)
- stable
- nightly
steps:
Expand All @@ -66,6 +66,7 @@ jobs:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
target: wasm32-unknown-unknown
- name: Cache ~/.cargo
uses: actions/cache@v1
with:
Expand Down Expand Up @@ -101,6 +102,11 @@ jobs:
with:
command: build
args: --all-targets
- name: build WASM
uses: actions-rs/cargo@v1
with:
command: build
args: --target wasm32-unknown-unknown --no-default-features --package magic-wormhole --features transit --features transfer
- name: test
uses: actions-rs/cargo@v1
with:
Expand Down Expand Up @@ -154,6 +160,10 @@ jobs:
with:
toolchain: nightly
override: true
- uses: actions-rs/[email protected]
with:
crate: cargo-tarpaulin
version: latest
- name: Cache ~/.cargo
uses: actions/cache@v1
with:
Expand All @@ -164,9 +174,11 @@ jobs:
with:
path: target
key: ${{ runner.os }}-coverage-cargo-build-target
- uses: actions-rs/[email protected]
- name: Run tarpaulin
uses: actions-rs/cargo@v1
with:
args: --all
command: tarpaulin
args: --workspace --out Xml
- name: upload coverage
uses: codecov/codecov-action@v1
with:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
**/*.rs.bk

.idea/
.vscode/
Loading