-
Notifications
You must be signed in to change notification settings - Fork 765
50 lines (39 loc) · 996 Bytes
/
dotnet-format.yml
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: dotnet format
on:
push:
branches: [ 'main*' ]
paths:
- '**.cs'
- '.editorconfig'
pull_request:
branches: [ 'main*' ]
paths:
- '**.cs'
- '.editorconfig'
jobs:
check-format-stable:
runs-on: windows-latest
steps:
- name: check out code
uses: actions/checkout@v4
- name: Setup dotnet
uses: actions/setup-dotnet@v4
- name: dotnet restore
run: dotnet restore
- name: dotnet format
run: dotnet format OpenTelemetry.sln --no-restore --verify-no-changes
env:
ExposeExperimentalFeatures: false
check-format-experimental:
runs-on: windows-latest
steps:
- name: check out code
uses: actions/checkout@v4
- name: Setup dotnet
uses: actions/setup-dotnet@v4
- name: dotnet restore
run: dotnet restore
- name: dotnet format
run: dotnet format OpenTelemetry.sln --no-restore --verify-no-changes
env:
ExposeExperimentalFeatures: true