Add cargo clippy to fast-validation workflow (#62) #415
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: fast-validation | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| build_and_test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Build with default | |
| run: cargo build --verbose | |
| - name: Build with tokio | |
| run: cargo build -F tokio --verbose | |
| - name: Build with async_std | |
| run: cargo build -F async_std --verbose | |
| - name: doc test & internal test | |
| run: cargo test | |
| - name: doc build | |
| run: cargo doc --all-features | |
| - name: Clippy with default | |
| run: cargo clippy | |
| - name: Clippy with tokio | |
| run: cargo clippy -F tokio | |
| - name: Clippy with async_std | |
| run: cargo clippy -F async_std | |
| - name: Run basic tests with tokio | |
| run: make test basic | |
| - name: Run timeout tests with async_std | |
| run: make test_async_std timeout |