Skip to content
This repository has been archived by the owner on Aug 4, 2024. It is now read-only.

Enable clippy in ci #114

Enable clippy in ci

Enable clippy in ci #114

Workflow file for this run

name: CI
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
CARGO_REGISTRIES_MY_REGISTRY_INDEX: https://github.com/rust-lang/crates.io-index
jobs:
<<<<<<< HEAD

Check failure on line 12 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

You have an error in your yaml syntax on line 12
lint:
=======
fmt:
>>>>>>> master
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
components: rustfmt, clippy
- name: Check code format
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: Run cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2023-04-07
- uses: actions/checkout@v2
- name: Install Protoc
uses: arduino/setup-protoc@v2
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --all-features
test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2023-04-07
- uses: actions/checkout@v2
- name: Install Protoc
uses: arduino/setup-protoc@v2
- name: Test
uses: actions-rs/cargo@v1
with:
command: test
args: --release --all-features --no-fail-fast