Merge pull request #151 from okjodom/tonic-bump #378
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: CI | |
on: | |
push: | |
branches: ['main'] | |
pull_request: | |
branches: ['*'] | |
jobs: | |
clippy: | |
name: Check code formatting | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
components: clippy | |
- uses: giraffate/clippy-action@v1 | |
with: | |
reporter: 'github-pr-review' | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
clippy_flags: --all-features --all-targets --color always -- --deny warnings | |
build: | |
name: Build and test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install protoc | |
run: sudo apt install -y protobuf-compiler | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- name: cargo build | |
run: cargo build --release --all-features | |
- name: cargo test | |
run: cargo test --all-features --all-targets --benches |