Skip to content

2673. Make Costs of Paths Equal in a Binary Tree: RETRY #1793

2673. Make Costs of Paths Equal in a Binary Tree: RETRY

2673. Make Costs of Paths Equal in a Binary Tree: RETRY #1793

Workflow file for this run

on: [push, pull_request]
name: Continuous integration
jobs:
check:
name: Check (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v7
# rustup reads rust-toolchain.toml and installs the pinned channel + components
- run: rustup show
- run: cargo check
test:
name: Test Suite (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v7
# rustup reads rust-toolchain.toml and installs the pinned channel + components
- run: rustup show
- run: cargo test
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
# rustup reads rust-toolchain.toml and installs the pinned channel + components
- run: rustup show
- run: cargo fmt --all -- --check
# clippy:
# name: Clippy
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v7
# - uses: dtolnay/rust-toolchain@nightly
# - run: cargo clippy -- -D warnings
coverage:
name: Code coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
# rustup reads rust-toolchain.toml and installs the pinned channel + components
- run: rustup show
- uses: taiki-e/install-action@cargo-llvm-cov
- run: cargo llvm-cov --all --lcov --output-path lcov.info
- uses: codecov/codecov-action@v7
with:
files: lcov.info
fail_ci_if_error: true