fixes #1287
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
on: | |
push: | |
paths: | |
- '**.rs' | |
- Cargo.toml | |
- Cargo.lock | |
- .github/workflows/cargo-test.yml | |
name: cargo test | |
jobs: | |
cargotest: | |
name: cargo test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install latest stable/nightly | |
shell: bash | |
run: | | |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | bash -s -- -y | |
rustup default nightly | |
rustup default stable | |
rustup component add rustfmt | |
rustup component add rustfmt --toolchain nightly | |
rustup component add clippy | |
echo PATH="${HOME}/.cargo/bin:${PATH}" >> ${GITHUB_ENV} | |
- uses: taiki-e/install-action@cargo-llvm-cov | |
- uses: taiki-e/install-action@nextest | |
- name: Rust Cache | |
uses: Swatinem/[email protected] | |
- name: cargo test | |
shell: bash | |
run: | | |
cargo llvm-cov nextest --all --lcov --output-path lcov.info --all-features | |
cargo llvm-cov nextest --all --lcov --output-path lcov.info | |
env: | |
KITTYCAD_API_TOKEN: ${{secrets.KITTYCAD_API_TOKEN}} | |
- name: Upload to codecov.io | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{secrets.CODECOV_TOKEN}} | |
fail_ci_if_error: true | |
flags: unittests | |
verbose: true | |
files: lcov.info |