Skip to content

Commit 84207b9

Browse files
committed
add formatting checks
1 parent e7a99ec commit 84207b9

File tree

4 files changed

+212
-100
lines changed

4 files changed

+212
-100
lines changed

.github/workflows/ci.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Run Checks
2+
on:
3+
pull_request:
4+
branches:
5+
- "**"
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-22.04
10+
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v5
14+
15+
- name: Setup .NET
16+
uses: actions/setup-dotnet@v5
17+
with:
18+
dotnet-version: "8.0.x"
19+
20+
- name: Install CSharpier
21+
run: dotnet tool install -g csharpier
22+
23+
- name: Check formatting
24+
run: csharpier check .

.vscode/extensions.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["csharpier.csharpier-vscode"]
3+
}

.vscode/settings.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"editor.defaultFormatter": "esbenp.prettier-vscode",
3+
"editor.formatOnSave": true,
4+
"[csharp]": {
5+
"editor.defaultFormatter": "csharpier.csharpier-vscode"
6+
}
7+
}

0 commit comments

Comments
 (0)