build(deps): bump hecrj/setup-rust-action from 1 to 2 #134
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 🧪 Test | |
on: [push, pull_request] | |
jobs: | |
all: | |
# Run tests on Linux | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: hecrj/setup-rust-action@v2 | |
- uses: actions/checkout@master | |
- name: Run tests | |
run: cargo test --verbose --workspace | |
- name: Run tests with all features | |
run: cargo test --verbose --workspace --all-features | |
# Install grcov | |
- name: Install grcov | |
run: | | |
mkdir -p "${HOME}/.local/bin" | |
curl -sL https://github.com/mozilla/grcov/releases/download/v0.8.18/grcov-x86_64-unknown-linux-gnu.tar.bz2 | tar jxf - -C "${HOME}/.local/bin" | |
echo "$HOME/.local/bin" >> $GITHUB_PATH | |
# Use grcov to generate a coverage report | |
- name: Generate coverage report | |
id: coverage | |
uses: actions-rs/cargo@v1 | |
with: | |
command: xtask | |
args: coverage | |
# Upload the coverage report to codecov | |
- name: Upload coverage report to codecov | |
id: codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
files: coverage/*.lcov |