Skip to content

fix: pin rustc 1.58.2 (#321) #683

fix: pin rustc 1.58.2 (#321)

fix: pin rustc 1.58.2 (#321) #683

Workflow file for this run

name: Linting
on:
- pull_request
jobs:
lint:
strategy:
matrix:
os:
# - ubuntu-18.04
- macos-10.15
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code and submodule
uses: actions/checkout@v2
with:
submodules: recursive
- uses: webfactory/ssh-agent@v0.5.1
with:
ssh-private-key: ${{ secrets.CICD_RSA_KEY }}
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy
- name: Run cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets -- -D warnings
- name: Run cargo clippy with all features
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-features --all-targets -- -D warnings