Skip to content

Merge pull request #59 from mjhouse/update_tests #36

Merge pull request #59 from mjhouse/update_tests

Merge pull request #59 from mjhouse/update_tests #36

Workflow file for this run

name: Testing
on:
push:
branches: [development]
env:
RUSTFLAGS: "-C instrument-coverage"
LLVM_PROFILE_FILE: "ms1553b-%p-%m.profraw"
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust toolchain
run: rustup update --no-self-update stable
- name: Install gcovr
run: |
rustup component add llvm-tools-preview &&
cargo install grcov
- name: Build library
run: cargo build --verbose
- name: Test library
run: cargo test --verbose
- name: Generate code coverage
run: |
mkdir -p ./target/debug/coverage &&
grcov . -s . -b ./target/debug/ -t html --branch --ignore-not-existing -o .
- name: Archive code coverage
uses: actions/upload-artifact@v4
with:
name: code-coverage
path: ./html/*
merge:
name: Merge
needs: [ test ]
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Merge branch
uses: devmasx/[email protected]
with:
type: now
target_branch: master
github_token: ${{ secrets.GITHUB_TOKEN }}