Skip to content

feat(update): updates project to rust 1.83.0 #90

feat(update): updates project to rust 1.83.0

feat(update): updates project to rust 1.83.0 #90

Workflow file for this run

name: Rust Build and Test
on:
push:
branches: [ main, dev ]
pull_request:
branches: [ main, dev ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Update Rust
run: rustup update stable
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Run doc tests
run: cargo test --doc --verbose
test:
name: Coverage
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Update rust
run: rustup update stable
- name: Setup
run: |
cargo install cargo-tarpaulin
- name: Install Nightly
run: |
rustup toolchain install nightly
- name: Generate code coverage
run: |
cargo tarpaulin --verbose --all-features --workspace --timeout 120 --run-types Tests --run-types Doctests --out Xml
- name: Coverage upload
uses: codecov/codecov-action@v1
with:
token: ${{secrets.CODECOV_TOKEN}}
fail_ci_if_error: true