Skip to content

ci: Change actions to use global.json#418

Merged
askpt merged 6 commits into
mainfrom
askpt/change-actions
Apr 14, 2025
Merged

ci: Change actions to use global.json#418
askpt merged 6 commits into
mainfrom
askpt/change-actions

Conversation

@askpt
Copy link
Copy Markdown
Member

@askpt askpt commented Apr 6, 2025

Signed-off-by: André Silva 2493377+askpt@users.noreply.github.com

This PR

This pull request includes several changes to the GitHub Actions workflows, primarily focusing on updating the .NET SDK setup and improving the release process. The most important changes are listed below:

Updates to .NET SDK setup:

Improvements to release process:

Consistency improvements:

Notes

  • This ensures the version used in the action is the one declared on the global.json.
  • Fixed an issue in the please-release. The release type is a mandatory field.

askpt added 2 commits April 6, 2025 18:52
Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 6, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.69%. Comparing base (b0b168f) to head (5b76ec7).
⚠️ Report is 238 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #418   +/-   ##
=======================================
  Coverage   85.69%   85.69%           
=======================================
  Files          39       39           
  Lines        1601     1601           
  Branches      171      171           
=======================================
  Hits         1372     1372           
  Misses        191      191           
  Partials       38       38           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@askpt askpt marked this pull request as ready for review April 6, 2025 17:57
@askpt askpt requested a review from a team as a code owner April 6, 2025 17:57
@askpt askpt enabled auto-merge April 6, 2025 17:57
@askpt askpt requested a review from Copilot April 6, 2025 17:57
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Comment thread .github/workflows/ci.yml
Copy link
Copy Markdown

@kriscoleman kriscoleman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm
:shipit:

thanks!

Copy link
Copy Markdown

@weyert weyert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine to me. As long we can keep supporting v4.6.x for now.

@askpt askpt added this pull request to the merge queue Apr 14, 2025
Merged via the queue into main with commit a2d4ca3 Apr 14, 2025
15 checks passed
@askpt askpt deleted the askpt/change-actions branch April 15, 2025 15:52
WeihanLi pushed a commit to WeihanLi/openfeature-dotnet-sdk that referenced this pull request May 14, 2025
Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>

<!-- Please use this template for your pull request. -->
<!-- Please use the sections that you need and delete other sections -->

## This PR
<!-- add the description of the PR here -->

This pull request includes several changes to the GitHub Actions
workflows, primarily focusing on updating the .NET SDK setup and
improving the release process. The most important changes are listed
below:

Updates to .NET SDK setup:

*
[`.github/workflows/ci.yml`](diffhunk://#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03fL33-R33):
Changed from specifying `dotnet-version` to using `global-json-file` for
setting up the .NET SDK version.
[[1]](diffhunk://#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03fL33-R33)
[[2]](diffhunk://#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03fL68-R66)
*
[`.github/workflows/code-coverage.yml`](diffhunk://#diff-49708f979e226a1e7bd7a68d71b2e91aae8114dd3e9254d9830cd3b4d62d4303L31-R31):
Updated to use `global-json-file` instead of `dotnet-version` for .NET
SDK setup.
*
[`.github/workflows/dotnet-format.yml`](diffhunk://#diff-ca8c2611c79b991c0fbe04fec3c97c14dc83419f5efb1e8a7a96dd51e7df3e2aL20-R20):
Modified to use `global-json-file` for .NET SDK setup.
*
[`.github/workflows/e2e.yml`](diffhunk://#diff-3e103440521ada06efd263ae09b259e5507e4b8f7408308dc227621ad9efa31eL26-R26):
Changed to use `global-json-file` for setting up the .NET SDK version.
*
[`.github/workflows/release.yml`](diffhunk://#diff-87db21a973eed4fef5f32b267aa60fcee5cbdf03c67fafdc2a9b553bb0b15f34L45-R46):
Updated to use `global-json-file` instead of `dotnet-version` for .NET
SDK setup.
[[1]](diffhunk://#diff-87db21a973eed4fef5f32b267aa60fcee5cbdf03c67fafdc2a9b553bb0b15f34L45-R46)
[[2]](diffhunk://#diff-87db21a973eed4fef5f32b267aa60fcee5cbdf03c67fafdc2a9b553bb0b15f34L77-R76)

Improvements to release process:

*
[`.github/workflows/release.yml`](diffhunk://#diff-87db21a973eed4fef5f32b267aa60fcee5cbdf03c67fafdc2a9b553bb0b15f34R26):
Added `release-type: simple` to the release configuration.
*
[`.github/workflows/release.yml`](diffhunk://#diff-87db21a973eed4fef5f32b267aa60fcee5cbdf03c67fafdc2a9b553bb0b15f34L90-R88):
Simplified the command for attaching SBOM to the release artifact.

Consistency improvements:

*
[`.github/workflows/ci.yml`](diffhunk://#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03fL7-R11):
Adjusted indentation for `paths-ignore` in `push` and `pull_request`
sections.

### Notes
- This ensures the version used in the action is the one declared on the
`global.json`.
- Fixed an issue in the please-release. The release type is a mandatory
field.

---------

Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
Signed-off-by: Weihan Li <weihanli@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants