Skip to content

coverall: bump nightly version #147

coverall: bump nightly version

coverall: bump nightly version #147

Workflow file for this run

name: Cocoon
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run Rustfmt
run: cargo fmt -- --check
- name: Build
run: cargo build --verbose
- name: Build with no default features
run: cargo build --no-default-features
- name: Build with only "alloc" feature
run: cargo build --no-default-features --features="alloc"
- name: Run tests
run: cargo test --verbose
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Select Rust nightly build
run: rustup default nightly
- name: Test with profiling
env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: >-
-Zprofile -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code
-Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort
RUSTDOCFLAGS: >-
-Zprofile -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code
-Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort
run: cargo test --all-features
- name: Install grcov
run: |
curl -L https://github.com/mozilla/grcov/releases/latest/download/grcov-x86_64-unknown-linux-gnu.tar.bz2 \
| tar jxf -
- name: Run grcov
run: |
mkdir coverage
./grcov ./target/debug/ -s . -t lcov --llvm --branch --ignore-not-existing \
--ignore "/*" \
--excl-line '#\[|=> panic!|unreachable!|Io\(std::io::Error\)|//!|///|^[ }]*$' \
--excl-br-line '#\[|=> panic!|unreachable!|assert_..!|//!|///' -o ./coverage/lcov.info
- name: Send to Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}