rn unused #8
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: Lint | |
| on: | |
| push: | |
| branches: | |
| # change for your branch name | |
| - main | |
| env: | |
| CARGO_TERM_COLOR: always | |
| BINARY_NAME: cdn | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install stable Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: clippy | |
| - name: Cache Rust dependencies | |
| uses: Swatinem/[email protected] | |
| with: | |
| env-vars: "CARGO RUST" | |
| cache-on-failure: true | |
| - name: lint | |
| run: cargo clippy # instruct some packages if needed | |
| - name: test | |
| run: cargo test --tests --bins --examples # instruct some packages if needed |