ci #336
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: | |
pull_request: | |
branches: | |
- main | |
release: | |
types: [created] | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: "20 23 * * 4" | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install protoc | |
run: | | |
sudo apt-get update | |
sudo apt-get install protobuf-compiler libprotobuf-dev | |
- name: Install latest stable | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: stable | |
components: rustfmt, clippy | |
# build/test before linting, as some source files are created by prost | |
- name: Test with cargo | |
run: cargo test | |
- name: Lint with rustfmt | |
run: cargo fmt | |
- name: Lint with clippy | |
run: cargo clippy --all-targets --all-features |