Skip to content

Commit a1f862c

Browse files
committed
Update ci.yml
1 parent dbe30f7 commit a1f862c

File tree

1 file changed

+29
-28
lines changed

1 file changed

+29
-28
lines changed

.github/workflows/ci.yml

Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -11,35 +11,36 @@ jobs:
1111
lint:
1212
name: Lint
1313
runs-on: windows-latest
14+
timeout-minutes: 15
1415
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
4344
check-dotnet:
4445
strategy:
4546
matrix:

0 commit comments

Comments
 (0)