Skip to content

v0.5.0-beta.1

v0.5.0-beta.1 #16

Workflow file for this run

name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust
uses: actions-rust-lang/[email protected]
with:
components: llvm-tools-preview
- name: Install cargo-llvm-cov
uses: taiki-e/[email protected]
with:
tool: cargo-llvm-cov
- name: Build project
run: cargo build --verbose
- name: Verify project formatting
run: cargo fmt --all --check
- name: Check for possible errors and coding suggestions
run: cargo clippy --all-features
- name: Run project tests
env:
RUST_LOG: warn
run: cargo test --verbose
- name: Run tests with coverage for all features
env:
RUST_LOG: warn
run: cargo llvm-cov --workspace --all-features --codecov --output-path codecov.json
- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
files: codecov.json
fail_ci_if_error: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}