-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (53 loc) · 1.33 KB
/
lint.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Linting
on:
pull_request:
paths:
- .github/workflows/lint.yaml
- contracts/**
- light-client/**
- "**/Cargo.toml"
- "**/Cargo.lock"
- justfile
- README.md
push:
tags:
- v[0-9]+.*
branches:
- "release/*"
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ !startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/main' }}
env:
CARGO_INCREMENTAL: 0
CARGO_PROFILE_DEV_DEBUG: 1
CARGO_PROFILE_RELEASE_DEBUG: 1
CARGO_NET_RETRY: 10
RUSTUP_MAX_RETRIES: 10
jobs:
lint:
name: Check Styles
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchains
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: nightly
components: rustfmt
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: clippy
- name: Install Taplo
uses: baptiste0928/cargo-install@v3
with:
crate: taplo-cli
- name: Install Scarb
uses: software-mansion/setup-scarb@v1
with:
scarb-version: "2.6.5"
- name: Install Just
uses: extractions/setup-just@v1
- name: Run linters
run: just lint