-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b743a95
commit e3de1fe
Showing
1 changed file
with
29 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,28 +2,43 @@ name: dotnet format | |
|
||
on: | ||
push: | ||
branches: [ 'main*', 'instrumentation*', 'exporter*', 'extensions*' ] | ||
branches: | ||
[ | ||
'main*', | ||
'instrumentation*', | ||
'exporter*', | ||
'extensions*' | ||
] | ||
paths: | ||
- '**.cs' | ||
- '.editorconfig' | ||
- '**.cs' | ||
- '.editorconfig' | ||
pull_request: | ||
branches: [ 'main*', 'instrumentation*', 'exporter*', 'extensions*' ] | ||
branches: | ||
[ | ||
'main*', | ||
'instrumentation*', | ||
'exporter*', | ||
'extensions*' | ||
] | ||
paths: | ||
- '**.cs' | ||
- '.editorconfig' | ||
- '**.cs' | ||
- '.editorconfig' | ||
|
||
jobs: | ||
check-format: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- name: check out code | ||
uses: actions/checkout@v3 | ||
- name: check out code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install .NET 7 SDK | ||
uses: actions/[email protected] | ||
with: | ||
dotnet-version: '7.0.x' | ||
- name: Install .NET 7 SDK | ||
uses: actions/[email protected] | ||
with: | ||
dotnet-version: '7.0.x' | ||
|
||
- name: dotnet format | ||
run: dotnet format .\opentelemetry-dotnet-contrib.sln --no-restore --verify-no-changes | ||
- name: dotnet restore | ||
run: dotnet restore | ||
|
||
- name: dotnet format | ||
run: dotnet format .\opentelemetry-dotnet-contrib.sln --no-restore --verify-no-changes |