-
Notifications
You must be signed in to change notification settings - Fork 1
65 lines (65 loc) · 1.83 KB
/
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
---
# SPDX-FileCopyrightText: 2023 The MalwareTracesGenerator development team
#
# SPDX-License-Identifier: CC0-1.0
name: Check formatting of the project
on: [push, pull_request]
jobs:
yamlfix:
name: Check YAML formatting
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Create requirements file for setup-python
run: touch ./requirements.txt
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: '3.13'
cache: pip
- name: Install yamlfix
run: pip install yamlfix
- name: Check YAML formatting
run: yamlfix -v --check .
mdformat:
name: Check Markdown formatting
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Create requirements file for setup-python
run: touch ./requirements.txt
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: '3.13'
cache: pip
- name: Install Mdformat
run: pip install mdformat
- name: Check Markdown formatting
run: mdformat --check .
rustfmt:
name: Check Rust formatting
runs-on: ubuntu-latest
env:
CARGO_TERM_COLOR: always
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install rustfmt
uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- name: Check Rust formatting
run: cargo fmt -v --all -- --check
taplo:
name: Check TOML formatting
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install taplo
uses: uncenter/setup-taplo@v1
- name: Check TOML formatting
run: taplo format --check --verbose