Minor refactoring for instrumentation libraries #12225
Workflow file for this run
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
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 |