Skip to content

ci

ci #341

Workflow file for this run

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