Skip to content

Commit ca23b04

Browse files
committed
ci: validate code formatting and build
1 parent a996fcf commit ca23b04

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/ci.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
ci:
11+
runs-on: windows-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: Setup .NET
15+
uses: actions/setup-dotnet@v3
16+
with:
17+
dotnet-version: 6.0.x
18+
- name: Restore tools
19+
run: dotnet tool restore
20+
- name: Code format
21+
run: dotnet csharpier --check .
22+
- name: Restore dependencies
23+
run: dotnet restore
24+
- name: Build
25+
run: dotnet build --no-restore -c Debug

0 commit comments

Comments
 (0)