Skip to content

Bug fix.

Bug fix. #1187

Workflow file for this run

name: Rust
on:
push:
branches: [master]
pull_request:
branches: [master]
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: -Cinstrument-coverage
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3.0"
- uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly
- run: |
cargo install grcov cargo-nextest
rustup component add llvm-tools-preview
- name: Install
run: cargo install --all-features --path monoruby
- name: Run tests
run: |
LLVM_PROFILE_FILE="monoruby-%p-%m.profraw" cargo nextest run --all-features
LLVM_PROFILE_FILE="monoruby-bin-%p-%m.profraw" monoruby test.rb
LLVM_PROFILE_FILE="monoruby-stdin-%p-%m.profraw" monoruby < test.rb
LLVM_PROFILE_FILE="monoruby-e-%p-%m.profraw" monoruby -e ""
- name: Run tests
run: |
LLVM_PROFILE_FILE="monoruby-tests-%p-%m.profraw" bin/test
- name: Run grcov
run: grcov . -s . --binary-path ./target/debug/ -t lcov --branch --ignore-not-existing -o ./lcov.info
- name: Upload to codecov.io
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}