Skip to content

Commit

Permalink
ci: update remaining github actions and set stryker error threshold to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
egil committed Jan 28, 2024
1 parent 0d92493 commit 9f86851
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,21 @@ jobs:
create-nuget:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Get all history to allow automatic versioning using MinVer

# Install the .NET SDK indicated in the global.json file
- name: Setup .NET
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x

# Create the NuGet package in the folder from the environment variable NuGetDirectory
- run: dotnet pack --configuration Release --output ${{ env.NuGetDirectory }}

# Publish the NuGet package as an artifact, so they can be used in the following jobs
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: nuget
if-no-files-found: error
Expand All @@ -54,9 +54,9 @@ jobs:
needs: [ create-nuget ]
steps:
- name: Setup .NET
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: nuget
path: ${{ env.NuGetDirectory }}
Expand Down Expand Up @@ -115,10 +115,10 @@ jobs:
permissions:
statuses: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x

Expand Down Expand Up @@ -164,7 +164,7 @@ jobs:
- name: 'Checkout Repository'
uses: actions/checkout@v4
- name: 'Dependency Review'
uses: actions/dependency-review-action@v3
uses: actions/dependency-review-action@v4

infer-sharp:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -205,7 +205,7 @@ jobs:

- name: Upload SARIF output to GitHub Security Center
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: github/codeql-action/upload-sarif@v2
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: infer-out/report.sarif

Expand All @@ -217,13 +217,13 @@ jobs:
runs-on: ubuntu-latest
needs: [ validate-nuget, run-test ]
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: nuget
path: ${{ env.NuGetDirectory }}

- name: Setup .NET Core
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4

- name: Publish NuGet package
shell: pwsh
Expand Down
2 changes: 1 addition & 1 deletion stryker-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"thresholds": {
"high": 80,
"low": 60,
"break": 60
"break": 0
}
}
}

0 comments on commit 9f86851

Please sign in to comment.