Bump test-context from 0.1.6 to 0.4.1 #599
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: | |
branches: | |
- main | |
paths: | |
- "**.rs" | |
- Cargo.toml | |
- Cargo.lock | |
- .github/workflows/cargo-test.yml | |
pull_request: | |
paths: | |
- "**.rs" | |
- Cargo.toml | |
- Cargo.lock | |
- .github/workflows/cargo-test.yml | |
workflow_dispatch: | |
permissions: read-all | |
name: cargo test | |
jobs: | |
cargotest: | |
name: cargo test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install latest rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
components: rustfmt, clippy | |
- uses: taiki-e/install-action@cargo-llvm-cov | |
- uses: taiki-e/install-action@nextest | |
- name: Rust Cache | |
uses: Swatinem/[email protected] | |
- name: Install deps | |
shell: bash | |
run: | | |
sudo apt-get update && sudo apt-get install -y \ | |
ca-certificates \ | |
libssl3 \ | |
libfreetype6 \ | |
libfontconfig1 \ | |
xvfb \ | |
--no-install-recommends | |
- name: cargo test | |
shell: bash | |
run: | | |
cargo build --all | |
cargo nextest run --all --test-threads=1 --no-fail-fast | |
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 |