Add minimum missing positive integer (Go/Java) #27
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: Rust | |
on: [ push, pull_request ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
fmt: | |
name: rustfmt | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
components: rustfmt | |
- name: Ensure Rust code is formatted | |
run: | | |
cd Rust/jobspls | |
cargo fmt --all --check | |
clippy: | |
name: Run clippy for lints | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
components: clippy | |
- name: Check Rust code with clippy | |
run: | | |
cd Rust/jobspls | |
cargo clippy --all-features --verbose | |
test: | |
name: Run Rust tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- name: Run Rust tests | |
run: | | |
cd Rust/jobspls | |
cargo test --all-features --all | |
coverage: | |
name: Code coverage | |
runs-on: ubuntu-latest | |
container: | |
image: xd009642/tarpaulin | |
options: --security-opt seccomp=unconfined | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run Rust code coverage | |
continue-on-error: true | |
run: | | |
cd Rust/jobspls | |
cargo tarpaulin --all-features --workspace --verbose | |
build-linux: | |
name: Build project (Linux x64) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- uses: rui314/setup-mold@v1 | |
- name: Build | |
run: | | |
cd Rust/jobspls | |
cargo build --all --release | |
build-macOS: | |
name: Build project (macOS) | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- name: Build | |
run: | | |
cd Rust/jobspls | |
cargo build --all --release | |