mirror_worker: stream and incrementally commit add-entries uploads #708
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
| name: Rust | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - run: rustup update stable && rustup default stable | |
| - name: Clippy (required) | |
| run: cargo clippy -- -D warnings | |
| - name: Clippy (pedantic, advisory) | |
| run: cargo clippy --workspace --all-targets -- -Dwarnings -Dclippy::pedantic | |
| continue-on-error: true | |
| - name: Unused dependencies (advisory) | |
| run: cargo install cargo-shear --quiet && cargo shear | |
| continue-on-error: true | |
| - name: Formatting (advisory) | |
| run: cargo fmt --all --check | |
| continue-on-error: true | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - run: rustup update stable && rustup default stable | |
| - name: Build | |
| run: cargo build --tests --workspace --verbose | |
| test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - run: rustup update stable && rustup default stable | |
| - name: Run tests | |
| run: cargo test --verbose |