@@ -11,35 +11,36 @@ jobs:
11
11
lint :
12
12
name : Lint
13
13
runs-on : windows-latest
14
+ timeout-minutes : 15
14
15
steps :
15
- - name : Checkout repository
16
- uses : actions/checkout@v4
17
- - name : Set up .NET
18
- uses : actions/setup-dotnet@v4
19
- with :
20
- dotnet-version : ' 6.0'
21
- - name : Install dependencies
22
- run : dotnet restore
23
- - name : Cache NuGet packages
24
- uses : actions/cache@v4
25
- with :
26
- path : |
27
- ~/.nuget/packages
28
- ~/.local/share/NuGet/Cache
29
- key : ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
30
- restore-keys : |
31
- ${{ runner.os }}-nuget-
32
- - name : Run linting
33
- run : dotnet build --no-restore --configuration Release /warnaserror
34
- env :
35
- DOTNET_CLI_TELEMETRY_OPTOUT : 1
36
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE : 1
37
- - name : Save linting logs
38
- if : failure()
39
- uses : actions/upload-artifact@v4
40
- with :
41
- name : stylecop-lint-log
42
- path : lint-output.log
16
+ - name : Checkout repository
17
+ uses : actions/checkout@v4
18
+ - name : Set up .NET
19
+ uses : actions/setup-dotnet@v4
20
+ with :
21
+ dotnet-version : ' 6.0'
22
+ - name : Install dependencies
23
+ run : dotnet restore
24
+ - name : Cache NuGet packages
25
+ uses : actions/cache@v4
26
+ with :
27
+ path : |
28
+ ~/.nuget/packages
29
+ ~/.local/share/NuGet/Cache
30
+ key : ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
31
+ restore-keys : |
32
+ ${{ runner.os }}-nuget-
33
+ - name : Run linting
34
+ run : dotnet build --no-restore --configuration Release /warnaserror
35
+ env :
36
+ DOTNET_CLI_TELEMETRY_OPTOUT : 1
37
+ DOTNET_SKIP_FIRST_TIME_EXPERIENCE : 1
38
+ - name : Save linting logs
39
+ if : failure()
40
+ uses : actions/upload-artifact@v4
41
+ with :
42
+ name : stylecop-lint-log
43
+ path : lint-output.log
43
44
check-dotnet :
44
45
strategy :
45
46
matrix :
0 commit comments