Skip to content

Commit 7cc9482

Browse files
taniwha3dmah42
andauthored
Add cargo fmt check workflow (#589)
Co-authored-by: dominic <510002+dmah42@users.noreply.github.com>
1 parent 27d24bf commit 7cc9482

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# ---------------------------------------------------------------------------- #
2+
# | █████╗ ██╗ ██╗██████╗ █████╗ ███████╗ | #
3+
# | ██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝ | #
4+
# | ███████║██║ ██║██████╔╝███████║█████╗ | #
5+
# | ██╔══██║██║ ██║██╔══██╗██╔══██║██╔══╝ | #
6+
# | ██║ ██║╚██████╔╝██║ ██║██║ ██║███████╗ | #
7+
# | ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ | #
8+
# +--------------------------------------------+ #
9+
# #
10+
# Distributed Systems Runtime #
11+
# ---------------------------------------------------------------------------- #
12+
# Copyright 2022 - 2024, the aurae contributors #
13+
# SPDX-License-Identifier: Apache-2.0 #
14+
# ---------------------------------------------------------------------------- #
15+
#
16+
# Ensure the codebase is formatted. Fails if `cargo fmt` would change files.
17+
#
18+
name: "(000) [ubuntu:latest] cargo fmt --check"
19+
20+
on:
21+
push:
22+
branches: main
23+
pull_request:
24+
branches: main
25+
26+
env:
27+
CARGO_TERM_COLOR: always
28+
29+
jobs:
30+
fmt:
31+
runs-on: ubuntu-latest
32+
steps:
33+
- uses: actions/checkout@v3
34+
- name: Check formatting
35+
run: cargo fmt --all -- --check

0 commit comments

Comments
 (0)