Skip to content

Commit 234080d

Browse files
authored
update github-actions versions (#262)
* add caching to setup-dotnet * updated actions versions * Update ci.yml * Update release.yml * Update benchmark.yml * Update ci.yml * Update ci.yml
1 parent 0531e28 commit 234080d

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

.github/workflows/benchmark.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111
runs-on: ubuntu-latest
1212
if: github.repository == 'fluentassertions/fluentassertions.analyzers'
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515
- name: Setup .NET
16-
uses: actions/setup-dotnet@v3
16+
uses: actions/setup-dotnet@v4
1717
with:
1818
dotnet-version: '6.x'
1919
- name: Run benchmark

.github/workflows/ci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,16 @@ jobs:
1313
os: [ubuntu-latest, windows-latest, macos-latest]
1414
config: [Debug, Release]
1515
runs-on: ${{ matrix.os }}
16+
env:
17+
NUGET_CERT_REVOCATION_MODE: offline
1618
steps:
17-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v4
1820
with:
1921
fetch-depth: 0
2022
- name: Setup .NET 6
21-
uses: actions/setup-dotnet@v3
23+
uses: actions/setup-dotnet@v4
2224
with:
2325
dotnet-version: 6.0.x
2426
- run: dotnet build
2527
- run: dotnet test --configuration Release --filter 'TestCategory=Completed' /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura
26-
- run: dotnet pack src/FluentAssertions.Analyzers/FluentAssertions.Analyzers.csproj
28+
- run: dotnet pack src/FluentAssertions.Analyzers/FluentAssertions.Analyzers.csproj

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout code
13-
uses: actions/checkout@v3
13+
uses: actions/checkout@v4
1414

1515
- name: Setup .NET Core
16-
uses: actions/setup-dotnet@v3
16+
uses: actions/setup-dotnet@v4
1717
with:
1818
dotnet-version: '6.x'
1919

@@ -35,4 +35,4 @@ jobs:
3535
$nupkg = $symbol.Replace(".symbols.nupkg",".nupkg");
3636
Write-Host "Pushing nupkg $nupkg";
3737
dotnet nuget push $nupkg --skip-duplicate --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json;
38-
}
38+
}

0 commit comments

Comments
 (0)