-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 844 Bytes
/
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
name: Formatting
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
env:
CARGO_TERM_COLOR: always
jobs:
check-rs-format:
name: Check Formatting (Rust)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
override: true
toolchain: nightly
- run: rustup component add rustfmt
- name: rustfmt
run: cargo fmt --check
check-prettier-format:
name: Check Formatting (Prettier)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check formatting with Prettier
# Explicit commit, because this isn't tagged yet.
uses: Nerixyz/actionsx-prettier@7bf11fa7899e9d9628cb326987e8f0fcf35ab1e3
with:
args: -c .