Skip to content

Commit 82d0016

Browse files
committed
Add lint workflow
1 parent 0f9ca6c commit 82d0016

2 files changed

Lines changed: 23 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
name: Build and Test
22

3-
on:
4-
push:
5-
branches: ["main"]
6-
pull_request:
7-
branches: ["main"]
3+
on: [push, pull_request]
84

95
jobs:
106
build:

.github/workflows/lint.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Linter Checks
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
check-formatting:
7+
runs-on: "ubuntu-latest"
8+
9+
steps:
10+
- name: Clone the repo
11+
uses: actions/checkout@v4
12+
13+
- name: Set up .NET
14+
uses: actions/setup-dotnet@v4
15+
with:
16+
dotnet-version: 9.0.x
17+
18+
- name: Restore tools
19+
run: dotnet tool restore
20+
21+
- name: Run CSharpier
22+
run: dotnet csharpier --check .

0 commit comments

Comments
 (0)