blob: 54c39aaf3efb6d42eb1435a073d40d98ca6dd730 (
plain)
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
|
---
name: Rust - Check formatting
on:
pull_request:
paths:
- .github/workflows/rustfmt.yml
- rustfmt.toml
- '**/*.rs'
workflow_dispatch:
permissions: {}
jobs:
check-formatting:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Checkout wireguard-go submodule
run: git submodule update --init --depth=1 wireguard-go-rs
- name: Check formatting
run: |-
rustfmt --version
cargo fmt -- --check
|