-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (41 loc) · 1.07 KB
/
cleanliness.yaml
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
43
44
45
46
47
name: cleanliness
on:
push:
tags: # only on releases, not RC, since we've tested already
- "[0-9]+.[0-9]+.[0-9]+"
branches: ["**"] # glob pattern to allow slash /
pull_request:
types:
- opened
- synchronize
branches:
- "release**"
- "main**"
env:
DIEM_FORGE_NODE_BIN_PATH: ${{github.workspace}}/diem-node
LIBRA_CI: 1
MODE_0L: "TESTNET"
jobs:
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: setup env
uses: ./.github/actions/build_env
- uses: Swatinem/[email protected]
with:
shared-key: "libra-framework"
cache-all-crates: true
- name: format
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
# TODO: clippy can share cache if build for tests is done prior
# - name: build for cache
# run: cargo build --tests --workspace
- name: clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --workspace --tests -- -D warnings