-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 1002 Bytes
/
extension.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
on:
push:
branches: [ main_extension ]
pull_request:
branches: [ main_extension ]
name: Extension
jobs:
test:
name: Lint extension
runs-on: ubuntu-latest
steps:
- name: Install tools
run: |
sudo apt-get update
sudo apt-get install -y libssl-dev pkg-config curl build-essential
- name: Checkout sources
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Install clippy & rustfmt
run: |
rustup component add clippy
rustup component add rustfmt
- name: Format
working-directory: extension
run: cargo fmt --all --check
- name: Lint
working-directory: extension
run: cargo clippy --all -- -D warnings
- name: Run cargo check
working-directory: cli
run: cargo check --all