Skip to content

Commit 01bfcd4

Browse files
committed
separates format and build workflows
Splits the format workflow into separate format and build workflows for the new CLI project. This improves the workflow organization and allows for more targeted builds and tests.
1 parent 144a291 commit 01bfcd4

File tree

2 files changed

+56
-6
lines changed

2 files changed

+56
-6
lines changed

.github/workflows/format.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,6 @@ jobs:
4848
-
4949
name: Run Format 'ci' solution
5050
run: dotnet format ./build/ --verify-no-changes
51-
-
52-
name: Build 'new-cli' solution
53-
run: dotnet build ./new-cli
54-
-
55-
name: Run Format 'new-cli' solution
56-
run: dotnet format ./new-cli/ --exclude ~/.nuget/packages --verify-no-changes
5751
-
5852
name: Run Format 'GitVersion' solution
5953
run: dotnet format ./src/ --exclude **/AddFormats/ --verify-no-changes

.github/workflows/new-cli.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Build (new-cli)
2+
on:
3+
push:
4+
branches:
5+
- main
6+
- 'fix/*'
7+
- 'feature/*'
8+
- 'poc/*'
9+
- 'support/*'
10+
paths:
11+
- '**'
12+
- '!docs/**'
13+
- '!.github/**'
14+
- .github/workflows/new-cli.yml
15+
16+
pull_request:
17+
branches:
18+
- main
19+
- 'support/*'
20+
paths:
21+
- '**'
22+
- '!docs/**'
23+
- '!.github/**'
24+
- .github/workflows/new-cli.yml
25+
26+
permissions:
27+
contents: read
28+
29+
env:
30+
DOTNET_ROLL_FORWARD: "Major"
31+
DOTNET_CLI_TELEMETRY_OPTOUT: 1
32+
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
33+
DOTNET_NOLOGO: 1
34+
35+
jobs:
36+
format:
37+
runs-on: ubuntu-24.04
38+
name: DotNet Format
39+
steps:
40+
-
41+
name: Checkout
42+
uses: actions/checkout@v4
43+
-
44+
name: Setup .NET SDK
45+
uses: actions/setup-dotnet@v4
46+
with:
47+
global-json-file: global.json
48+
-
49+
name: Build 'new-cli' solution
50+
run: dotnet build ./new-cli
51+
-
52+
name: Run Format 'new-cli' solution
53+
run: dotnet format ./new-cli --exclude ~/.nuget/packages --verify-no-changes
54+
-
55+
name: Test 'new-cli' solution
56+
run: dotnet test ./new-cli --no-build --verbosity normal

0 commit comments

Comments
 (0)