-
Notifications
You must be signed in to change notification settings - Fork 4
80 lines (62 loc) · 1.53 KB
/
Copy pathfmt.yaml
File metadata and controls
80 lines (62 loc) · 1.53 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: Format
on:
push:
branches: ["main"]
pull_request:
permissions: {}
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
env:
CARGO_INCREMENTAL: 0
CARGO_TERM_COLOR: always
CLICOLOR_FORCE: ""
jobs:
rustfmt:
name: Rustfmt - ${{ matrix.workspace.name }}
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
workspace:
- { name: Client, path: client }
- { name: Host, path: host }
defaults:
run:
working-directory: ${{ matrix.workspace.path }}
steps:
- name: Checkout
uses: actions/checkout@v7
with:
persist-credentials: false
- name: Install Rustfmt
run: rustup +nightly component add rustfmt
- name: Rustfmt
run: cargo +nightly fmt --check
tombi:
name: Tombi Format
runs-on: ubuntu-slim
timeout-minutes: 20
steps:
- name: Checkout
uses: actions/checkout@v7
with:
persist-credentials: false
- name: Install Tombi
run: npm install -g tombi --no-audit --no-fund
- name: Tombi Format
run: tombi format --check --diff
prettier:
name: Prettier
runs-on: ubuntu-slim
timeout-minutes: 20
steps:
- name: Checkout
uses: actions/checkout@v7
with:
persist-credentials: false
- name: Install Prettier
run: npm install -g prettier --no-audit --no-fund
- name: Prettier
run: prettier . -c