Skip to content

Commit

Permalink
Update resharper inspections and github workflows.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nihlus committed Mar 31, 2024
1 parent 6a1e754 commit 9423c3e
Show file tree
Hide file tree
Showing 3 changed files with 191 additions and 23 deletions.
57 changes: 35 additions & 22 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,45 +14,58 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
7.0.x
8.0.x
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.0.x
7.0.x
8.0.x
- name: Build
run: |
dotnet restore
dotnet build -c Release --no-restore
- name: Build
run: |
dotnet restore
dotnet build -c Release --no-restore
- name: Test
run: dotnet test -c Release --no-restore --no-build --verbosity minimal

- name: Test
run: dotnet test -c Release --no-restore --no-build --verbosity minimal
- name: Inspect
uses: JetBrains/[email protected]
with:
tool-version: 2023.3.4
solution: Remora.OAuth2.sln
build: false
no-build: true
telemetry-optout: true

- name: Package
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
run: dotnet pack -c Release --no-restore --no-build --version-suffix "github$GITHUB_RUN_ID"
- uses: actions/upload-artifact@v3
with:
name: nupkg
path: nuget/*
- name: Package
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
run: dotnet pack -c Release --no-restore --no-build --version-suffix "github$GITHUB_RUN_ID"
- uses: actions/upload-artifact@v4
with:
name: nupkg
path: nuget/*
permissions:
security-events: write
prerelease:
needs: build
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
runs-on: ubuntu-latest

steps:
- name: Download package artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: nupkg
path: nuget

# To ensure that the current version being pushed does not get pruned we prune first.
- name: Prune packages older than 4 versions (new version is the 5th)
uses: smartsquaregmbh/delete-old-packages@v0.4.0
uses: smartsquaregmbh/delete-old-packages@v0.8.0
with:
organization: Remora
type: nuget
keep: 4
names: |
Remora.OAuth2.Abstractions
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9423c3e

Please sign in to comment.