Repository navigation
2673. Make Costs of Paths Equal in a Binary Tree: RETRY #1793
This file contains hidden or 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, 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 |