Skip to content

Bump to v1.0.3

Bump to v1.0.3 #151

Workflow file for this run

name: Build and Test
on:
push:
paths:
- "**.rs"
branches: [main]
pull_request:
branches: [main]
workflow_dispatch: {}
env:
CARGO_TERM_COLOR: always
LLVM_PROFILE_FILE: "rust-ocpp-%p-%m.profraw"
RUSTFLAGS: "-Cinstrument-coverage"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: download grcov for code coverage
run: curl -L https://github.com/mozilla/grcov/releases/latest/download/grcov-x86_64-unknown-linux-gnu.tar.bz2 | tar jxf -
- name: install llvm tools preview
run: rustup component add llvm-tools-preview
- name: Build
run: cargo build --all-features
- name: Run tests
run: LLVM_PROFILE_FILE="your_name-%p-%m.profraw" cargo test --all-features
- name: Generate lcov.info for Code coverage
run: ./grcov . --binary-path ./target/debug/ -s . -t lcov --branch --ignore-not-existing --ignore "/*" -o lcov.info
- name: Codecov
uses: codecov/codecov-action@v4.5.0
with:
files: ./lcov.info
token: ${{ secrets.CODECOV_TOKEN }}