(docker deps): bump devcontainers/dotnet from 8fd6c75 to 9eb3144 in /.devcontainer in the docker group across 1 directory
#3960
This file contains hidden or 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: Code Format | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - 'fix/*' | |
| - 'feature/*' | |
| - 'poc/*' | |
| - 'support/*' | |
| - 'next/*' | |
| paths: | |
| - '**' | |
| - '!docs/**' | |
| - '!.github/**' | |
| - .github/workflows/format.yml | |
| pull_request: | |
| branches: | |
| - main | |
| - 'support/*' | |
| - 'next/*' | |
| paths: | |
| - '**' | |
| - '!docs/**' | |
| - '!.github/**' | |
| - .github/workflows/format.yml | |
| permissions: | |
| contents: read | |
| env: | |
| DOTNET_ROLL_FORWARD: "Major" | |
| DOTNET_CLI_TELEMETRY_OPTOUT: 1 | |
| DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 | |
| DOTNET_NOLOGO: 1 | |
| jobs: | |
| format: | |
| runs-on: ubuntu-24.04 | |
| name: DotNet Format | |
| steps: | |
| - name: Harden the runner (Audit all outbound calls) | |
| uses: step-security/harden-runner@e14015d583714f6e62063499dc959a02595150a1 # v2.21.1 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Setup .NET SDK | |
| uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0 | |
| with: | |
| global-json-file: global.json | |
| - name: Cache NuGet packages | |
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | |
| with: | |
| path: ~/.nuget/packages | |
| key: nuget-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('global.json', '**/*.csproj', '**/*.props', '**/*.targets', 'NuGet.config', 'nuget.config') }} | |
| restore-keys: | | |
| nuget-${{ runner.os }}-${{ runner.arch }}- | |
| - name: Run Format 'ci' solution | |
| run: dotnet format ./build/ --verify-no-changes | |
| - name: Run Format 'GitVersion' solution | |
| run: dotnet format ./src/ --exclude "**/AddFormats/" --verify-no-changes |