-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (36 loc) · 1012 Bytes
/
test_format.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: Check formatting
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
fmt:
name: cargo fmt check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: Swatinem/rust-cache@v2
- run: cargo fmt --all -- --check
clippy:
name: Clippy lint and check
runs-on: ubuntu-latest
steps:
- run: sudo apt-get install llvm protobuf-compiler glibc-source libgtk-3-dev libsoup2.4 webkit2gtk-4.0 javascriptcoregtk-4.0
- uses: actions/checkout@v4
with:
submodules: true
- uses: Swatinem/rust-cache@v2
- name: Set up Node LTS
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: yarn
cache-dependency-path: 'Ecdar-GUI-Web/yarn.lock'
- name: Install yarn dependencies
run: cd Ecdar-GUI-Web && yarn install
- run: clippy --all-targets -- -D warnings