-
Notifications
You must be signed in to change notification settings - Fork 5
Update to latest version of .NET and packages #210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,69 @@ | ||
| on: | ||
| workflow_call: | ||
| inputs: | ||
| forRelease: | ||
| description: 'Run for release?' | ||
| required: true | ||
| type: boolean | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v7 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Git Semantic Version | ||
| id: version | ||
| uses: PaulHatch/semantic-version@v6.0.3 | ||
| with: | ||
| tag_prefix: '' | ||
| version_format: "${major}.${minor}.${patch}${{ !inputs.forRelease && '-preview${increment}' || '' }}" | ||
| search_commit_body: true | ||
|
|
||
| - name: Setup dotnet from global.json | ||
| uses: actions/setup-dotnet@v6 | ||
| with: | ||
| global-json-file: global.json | ||
|
|
||
| - name: Build and Pack | ||
| run: dotnet build -c Release -p:Version=${{ steps.version.outputs.version}} | ||
|
|
||
| - name: Run tests | ||
| run: dotnet test -c Release --no-build --report-trx --report-trx-filename "{asm}_report.trx" --coverage --coverage-output-format cobertura | ||
|
|
||
| - name: Upload dotnet test results | ||
| uses: dorny/test-reporter@v3.0.0 | ||
|
github-advanced-security[bot] marked this conversation as resolved.
Fixed
|
||
| if: ${{ !cancelled() }} | ||
| with: | ||
| name: .NET Tests | ||
| path: 'TestResults/*_report.trx' | ||
| reporter: dotnet-trx | ||
| fail-on-error: true | ||
|
|
||
| - name: Install ReportGenerator | ||
| run: dotnet tool install --global dotnet-reportgenerator-globaltool | ||
|
|
||
| - name: Generate code coverage report | ||
| run: | | ||
| reportgenerator \ | ||
| -reports:"**/TestResults/**/*.cobertura.xml" \ | ||
| -targetDir:"codecoveragereport" \ | ||
| -reporttypes:"Html;MarkdownSummaryGitHub" | ||
|
|
||
| - name: Publish code coverage summary | ||
| run: cat codecoveragereport/SummaryGithub.md >> $GITHUB_STEP_SUMMARY | ||
|
|
||
| - name: Upload code coverage report | ||
| uses: actions/upload-artifact@v7 | ||
| with: | ||
| name: code-coverage-report | ||
| path: codecoveragereport | ||
|
|
||
| - name: Upload package artifact | ||
| uses: actions/upload-artifact@v7 | ||
| with: | ||
| name: packages | ||
| path: "**/*.nupkg" | ||
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 8 additions & 6 deletions
14
.github/workflows/generateDocs.yml → .github/workflows/generate-docs.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,19 +1,21 @@ | ||
| on: | ||
| workflow_call: | ||
| inputs: {} | ||
|
|
||
| jobs: | ||
| build: | ||
| strategy: | ||
| fail-fast: false | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v5 | ||
| - name: Build documenation site | ||
| uses: nunit/docfx-action@v4.1.0 | ||
| uses: actions/checkout@v7 | ||
|
|
||
| - name: Build documentation site | ||
| uses: wechooz/docfx-action@v10.0.0 | ||
|
github-advanced-security[bot] marked this conversation as resolved.
Fixed
|
||
| with: | ||
| args: docs/docfx.json | ||
|
|
||
| - name: Upload documentation archive | ||
| uses: actions/upload-pages-artifact@v4 | ||
| uses: actions/upload-pages-artifact@v5 | ||
| with: | ||
| path: artifacts/_site | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| on: | ||
| workflow_call: | ||
| inputs: | ||
| environmentName: | ||
| description: "Name of the environment" | ||
| required: true | ||
| type: string | ||
| feedUrl: | ||
| description: 'NuGet feed URL' | ||
| required: true | ||
| type: string | ||
| secrets: | ||
| feedAPIKey: | ||
| description: 'NuGet feed API key' | ||
| required: true | ||
|
|
||
| jobs: | ||
| publish: | ||
| runs-on: ubuntu-latest | ||
| environment: | ||
| name: ${{ inputs.environmentName }} | ||
| steps: | ||
| - name: Download package artifact | ||
| uses: actions/download-artifact@v8 | ||
| with: | ||
| name: packages | ||
|
|
||
| - name: Push to NuGet package feed | ||
| env: | ||
| NUGET_URL: ${{ inputs.feedUrl }} | ||
| NUGET_API_KEY: ${{ secrets.feedAPIKey }} | ||
| run: dotnet nuget push '**/*.nupkg' --source "$NUGET_URL" --api-key "$NUGET_API_KEY" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| on: | ||
| workflow_call: | ||
| inputs: | ||
| environmentName: | ||
| description: "Name of the environment" | ||
| required: true | ||
| type: string | ||
| secrets: | ||
| owner: | ||
| description: 'NuGet feed owner' | ||
| required: true | ||
|
|
||
| jobs: | ||
| publish: | ||
| runs-on: ubuntu-latest | ||
| environment: | ||
| name: ${{ inputs.environmentName }} | ||
| permissions: | ||
| id-token: write | ||
| steps: | ||
| - name: Download package artifact | ||
| uses: actions/download-artifact@v8 | ||
| with: | ||
| name: packages | ||
|
|
||
| - name: NuGet login (OIDC → temp API key) | ||
| uses: NuGet/login@v1 | ||
|
github-advanced-security[bot] marked this conversation as resolved.
Fixed
|
||
| id: login | ||
| with: | ||
| user: ${{ secrets.owner }} | ||
|
|
||
| - name: Push to NuGet package feed | ||
| run: dotnet nuget push '**/*.nupkg' --source https://api.nuget.org/v3/index.json --api-key ${{steps.login.outputs.NUGET_API_KEY}} | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.