Skip to content
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

Fixed up main.yml #3292

Merged
merged 41 commits into from
Jun 7, 2024
Merged

Conversation

cschuchardt88
Copy link
Member

@cschuchardt88 cschuchardt88 commented Jun 5, 2024

Change Log

  • Added BaseOutputPath for @vncoelho plugins
  • Added Coveralls to Directory.Build.props
  • Fixed Coveralls
  • Added new steps and jobs
  • Changed back to lcov format

Now all binary outputs will be at $(SolutionDir)/bin/$(PackageId)

Example

  • .\neo\bin\Neo\Debug\net8.0
  • .\neo\bin\Neo.Plugins.ApplicationLogs\Debug\net8.0\

Type of change

  • Optimization (the change is only an optimization)
  • Style (the change is only a code style for better maintenance or standard purpose)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Test Configuration:

  • Tested locally

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@cschuchardt88 cschuchardt88 requested a review from a team June 5, 2024 01:53
@cschuchardt88 cschuchardt88 marked this pull request as draft June 5, 2024 02:44
@cschuchardt88 cschuchardt88 changed the title Added BaseOutputPath Fixed up main.yml Jun 5, 2024
@cschuchardt88 cschuchardt88 marked this pull request as ready for review June 5, 2024 05:05
Jim8y
Jim8y previously approved these changes Jun 5, 2024
shargon
shargon previously approved these changes Jun 5, 2024
Co-authored-by: Shargon <shargon@gmail.com>
@Jim8y Jim8y dismissed stale reviews from shargon and themself via 75ad6e3 June 5, 2024 07:33
@vncoelho
Copy link
Member

vncoelho commented Jun 5, 2024

I will review soon. Do not merge.

Comment on lines +24 to +30
- name: Check Format (*.cs)
run: dotnet format --verify-no-changes --verbosity diagnostic

- name: Build (Neo.CLI)
run: |
dotnet build ./src/Neo.CLI \
--output ./out/Neo.CLI
Copy link
Member

Choose a reason for hiding this comment

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

Just a side comment: it might be a good idea to split this job into Format and Build, because Format job itself does not block the Test job. And then Test job may be dependent only on Build job. It's just the way how it works for NeoGo actions, and sometimes it's useful because your code may have a lack of formatting and you'll get your test results anyway.

Copy link
Member Author

Choose a reason for hiding this comment

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

This is a required step/job. That is why its linked to tests. Or else @shargon would have to make the build and format job required for PRs.

Copy link
Member

Choose a reason for hiding this comment

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

I think it's fine, or it can be done in a different PR, if the format is wrong we get the error earlier

@vncoelho
Copy link
Member

vncoelho commented Jun 6, 2024

Coverage decreased (-3.0%) to 71.386%

@@ -5,6 +5,8 @@
<TargetFrameworks>netstandard2.1;net8.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<PackageId>Neo.Cryptography.BLS12_381</PackageId>
Copy link
Member

Choose a reason for hiding this comment

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

Is this needed, what is this packageID need?

Copy link
Member

Choose a reason for hiding this comment

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

is this package created here or elsewhere?

Copy link
Member

Choose a reason for hiding this comment

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

I searched quickly here and found that packageId was more related to dependency.

Copy link
Member Author

@cschuchardt88 cschuchardt88 Jun 6, 2024

Choose a reason for hiding this comment

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

Its for nuget. The nuget filename and package name of the package.

@@ -7,6 +7,9 @@
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
<WarningLevel>0</WarningLevel>
<CollectCoverage>true</CollectCoverage>
Copy link
Member

Choose a reason for hiding this comment

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

is this good? Because this is generic to any OS

Copy link
Member Author

@cschuchardt88 cschuchardt88 Jun 6, 2024

Choose a reason for hiding this comment

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

this enables for all tests. I don't know what you mean by generic to any OS. Does it work on all... yes.

@cschuchardt88
Copy link
Member Author

cschuchardt88 commented Jun 6, 2024

Coverage decreased (-3.0%) to 71.386%

switched back to lcov?

@shargon shargon merged commit 6e8c730 into neo-project:master Jun 7, 2024
6 of 7 checks passed
@shargon shargon deleted the fix/plugins-output branch June 7, 2024 09:46
Jim8y added a commit to Jim8y/neo that referenced this pull request Jun 7, 2024
* 'fix-3300' of github.com:Jim8y/neo:
  Fixed up `main.yml` (neo-project#3292)
  [Neo Core Style] Rename parameters, update comments, fix code style (neo-project#3294)
@vncoelho
Copy link
Member

vncoelho commented Jun 7, 2024

Why did you merge this PR? The coverage had problems and decreased.

Jim8y added a commit to Jim8y/neo that referenced this pull request Jun 8, 2024
* master:
  Fix error when vc_redist is missing (neo-project#3293)
  Fixed up `main.yml` (neo-project#3292)
  [Neo Core Style] Rename parameters, update comments, fix code style (neo-project#3294)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants