Skip to content

Commit ff6e0f7

Browse files
committed
Only run formatting check on linux
We don't want it to complain about line endings on windows.
1 parent e920eba commit ff6e0f7

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/pr.yml

+10-2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,16 @@ jobs:
2424
os="${{ contains(github.event.pull_request.labels.*.name, 'ci/test') && 'ubuntu-latest macos-latest windows-latest' || 'ubuntu-latest' }}"
2525
echo "matrix={\"os\": $(echo $os | jq -cR 'split(" ")')}" >> $GITHUB_OUTPUT
2626
27+
format:
28+
runs-on: ubuntu-latest
29+
steps:
30+
- name: Checkout code
31+
uses: actions/checkout@v4
32+
- name: Setup dotnet SDK v6.0
33+
uses: actions/setup-dotnet@v4
34+
- name: Format Pulumi SDK
35+
run: dotnet run format-sdk verify
36+
2737
build:
2838
needs: setup_matrix
2939
strategy:
@@ -41,8 +51,6 @@ jobs:
4151
dotnet-version: ${{ matrix.dotnet-version }}
4252
- name: Install Pulumi CLI
4353
uses: pulumi/actions@v5
44-
- name: Format Pulumi SDK
45-
run: dotnet run format-sdk verify
4654
- name: Build Pulumi SDK
4755
run: dotnet run build-sdk
4856
- name: Test Pulumi SDK

0 commit comments

Comments
 (0)