-
Notifications
You must be signed in to change notification settings - Fork 22
42 lines (40 loc) · 1.11 KB
/
clippy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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