-
Notifications
You must be signed in to change notification settings - Fork 662
58 lines (50 loc) · 1.21 KB
/
new-cli.yml
File metadata and controls
58 lines (50 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Build (new-cli)
on:
push:
branches:
- main
- 'fix/*'
- 'feature/*'
- 'poc/*'
- 'support/*'
- 'next/*'
paths:
- '**'
- '!docs/**'
- '!.github/**'
- .github/workflows/new-cli.yml
pull_request:
branches:
- main
- 'support/*'
- 'next/*'
paths:
- '**'
- '!docs/**'
- '!.github/**'
- .github/workflows/new-cli.yml
permissions:
contents: read
env:
DOTNET_ROLL_FORWARD: "Major"
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_NOLOGO: 1
TESTINGPLATFORM_TELEMETRY_OPTOUT: 1
jobs:
format:
runs-on: ubuntu-24.04
name: Build & Test (new-cli)
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup .NET SDK
uses: actions/setup-dotnet@v5
with:
global-json-file: global.json
- name: Build 'new-cli' solution
run: dotnet build ./new-cli
- name: Run Format 'new-cli' solution
run: dotnet format ./new-cli --exclude ~/.nuget/packages --verify-no-changes
- name: Test 'new-cli' solution
run: dotnet test --solution ./new-cli/GitVersion.slnx --no-build --verbosity normal