Fix clippy warnings #252
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: Clippy | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
clippy: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
ocaml-version: ["4.14.1"] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: OCaml/Opam cache | |
id: ocaml-interop-opam-cache | |
uses: actions/cache@v2 | |
with: | |
path: "~/.opam" | |
key: ${{ matrix.os }}-${{ matrix.ocaml-version }} | |
- name: Setup OCaml ${{ matrix.ocaml-version }} | |
uses: ocaml/setup-ocaml@v2 | |
with: | |
ocaml-compiler: ${{ matrix.ocaml-version }} | |
- name: Set Opam env | |
run: opam env | tr '\n' ' ' >> $GITHUB_ENV | |
- name: Add Opam switch to PATH | |
run: opam var bin >> $GITHUB_PATH | |
- name: Setup Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
components: clippy | |
override: true | |
- name: lint | |
uses: actions-rs/clippy-check@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
args: --all-features --features=without-ocamlopt |