-
Notifications
You must be signed in to change notification settings - Fork 449
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
Initial attempt at building/testing/publishing under linux #196
Conversation
Codecov Report
@@ Coverage Diff @@
## main #196 +/- ##
=======================================
Coverage ? 10.99%
=======================================
Files ? 14
Lines ? 1428
Branches ? 0
=======================================
Hits ? 157
Misses ? 1271
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
<IsCodedUITest>False</IsCodedUITest> | ||
<TestProjectType>UnitTest</TestProjectType> | ||
<TargetFrameworkProfile /> | ||
<TargetFramework>net5.0</TargetFramework> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought we planned to support netstandard2.0
? Is there a reason we want this on net5.0
? I believe net is just the .NET Framework or is it .NET Core?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is .NET Core, the naming is weird for 5 onwards. I ran into issues with setting up the tests when targeting the standard and figure targeting a specific core version is fine since this is a dev-only change.
dropbox-sdk-dotnet/Dropbox.Api.Integration.Tests/Dropbox.Api.Integration.Tests.csproj
Show resolved
Hide resolved
<ItemGroup> | ||
<None Include="dropbox.runsettings" /> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.7.1" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to specify that this csproj is for tests? Or does it know based on these imports? I see above line 18 is where we specified it before but not sure if that is still needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the thing in the old file was just a hint for the IDE? I can add it back, but in theory we can dotnet test
any of these csproj files without any extra metadata.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks all good to me! Glad to see were cleaning up a lot of the code
* #193 Fix InvalidCastException 1. Turn off DateTime parsing by JsonTextReader 2. Perform parsing in DateTimeDecoder using the same Culture and DateTimeKind. 3. Added tests to verify the behavior. * Initial attempt at building/testing/publishing under linux (#196) * Initial attempt at building/testing/publishing under linux * replace backslash with forwardslash * Attempt to add unit test coverage reports * try to fix gh actions syntax error * try to fix gh actions syntax error again * try to fix conditional expression for publishing coverage * try to fix conditional expression for publishing coverage again * only run CI on ubuntu * PR feedback * no multi-line run directives on windows Co-authored-by: Connor Worley <cworley@dropbox.com> * Bump peter-evans/create-pull-request from v3.4.1 to v3.6.0 (#198) Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from v3.4.1 to v3.6.0. - [Release notes](https://github.com/peter-evans/create-pull-request/releases) - [Commits](peter-evans/create-pull-request@v3.4.1...45c510e) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump actions/setup-python from v2.1.4 to v2.2.1 (#195) Bumps [actions/setup-python](https://github.com/actions/setup-python) from v2.1.4 to v2.2.1. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](actions/setup-python@v2.1.4...3105fb1) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump codecov/codecov-action from v1.0.15 to v1.1.1 (#201) Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from v1.0.15 to v1.1.1. - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/master/CHANGELOG.md) - [Commits](codecov/codecov-action@v1.0.15...1fc7722) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * #193 Fix InvalidCastException 1. Turn off DateTime parsing by JsonTextReader 2. Perform parsing in DateTimeDecoder using the same Culture and DateTimeKind. 3. Added tests to verify the behavior. Co-authored-by: Connor Worley <connorbworley@gmail.com> Co-authored-by: Connor Worley <cworley@dropbox.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* #193 Fix InvalidCastException 1. Turn off DateTime parsing by JsonTextReader 2. Perform parsing in DateTimeDecoder using the same Culture and DateTimeKind. 3. Added tests to verify the behavior. * Initial attempt at building/testing/publishing under linux (#196) * Initial attempt at building/testing/publishing under linux * replace backslash with forwardslash * Attempt to add unit test coverage reports * try to fix gh actions syntax error * try to fix gh actions syntax error again * try to fix conditional expression for publishing coverage * try to fix conditional expression for publishing coverage again * only run CI on ubuntu * PR feedback * no multi-line run directives on windows Co-authored-by: Connor Worley <cworley@dropbox.com> * Bump peter-evans/create-pull-request from v3.4.1 to v3.6.0 (#198) Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from v3.4.1 to v3.6.0. - [Release notes](https://github.com/peter-evans/create-pull-request/releases) - [Commits](peter-evans/create-pull-request@v3.4.1...45c510e) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump actions/setup-python from v2.1.4 to v2.2.1 (#195) Bumps [actions/setup-python](https://github.com/actions/setup-python) from v2.1.4 to v2.2.1. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](actions/setup-python@v2.1.4...3105fb1) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump codecov/codecov-action from v1.0.15 to v1.1.1 (#201) Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from v1.0.15 to v1.1.1. - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/master/CHANGELOG.md) - [Commits](codecov/codecov-action@v1.0.15...1fc7722) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * #193 Fix InvalidCastException 1. Turn off DateTime parsing by JsonTextReader 2. Perform parsing in DateTimeDecoder using the same Culture and DateTimeKind. 3. Added tests to verify the behavior. Co-authored-by: Connor Worley <connorbworley@gmail.com> Co-authored-by: Connor Worley <cworley@dropbox.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Initial attempt at building/testing/publishing under linux * replace backslash with forwardslash * Attempt to add unit test coverage reports * try to fix gh actions syntax error * try to fix gh actions syntax error again * try to fix conditional expression for publishing coverage * try to fix conditional expression for publishing coverage again * only run CI on ubuntu * PR feedback * no multi-line run directives on windows Co-authored-by: Connor Worley <cworley@dropbox.com>
* #193 Fix InvalidCastException 1. Turn off DateTime parsing by JsonTextReader 2. Perform parsing in DateTimeDecoder using the same Culture and DateTimeKind. 3. Added tests to verify the behavior. * Initial attempt at building/testing/publishing under linux (#196) * Initial attempt at building/testing/publishing under linux * replace backslash with forwardslash * Attempt to add unit test coverage reports * try to fix gh actions syntax error * try to fix gh actions syntax error again * try to fix conditional expression for publishing coverage * try to fix conditional expression for publishing coverage again * only run CI on ubuntu * PR feedback * no multi-line run directives on windows Co-authored-by: Connor Worley <cworley@dropbox.com> * Bump peter-evans/create-pull-request from v3.4.1 to v3.6.0 (#198) Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from v3.4.1 to v3.6.0. - [Release notes](https://github.com/peter-evans/create-pull-request/releases) - [Commits](peter-evans/create-pull-request@v3.4.1...45c510e) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump actions/setup-python from v2.1.4 to v2.2.1 (#195) Bumps [actions/setup-python](https://github.com/actions/setup-python) from v2.1.4 to v2.2.1. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](actions/setup-python@v2.1.4...3105fb1) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump codecov/codecov-action from v1.0.15 to v1.1.1 (#201) Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from v1.0.15 to v1.1.1. - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/master/CHANGELOG.md) - [Commits](codecov/codecov-action@v1.0.15...1fc7722) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * #193 Fix InvalidCastException 1. Turn off DateTime parsing by JsonTextReader 2. Perform parsing in DateTimeDecoder using the same Culture and DateTimeKind. 3. Added tests to verify the behavior. Co-authored-by: Connor Worley <connorbworley@gmail.com> Co-authored-by: Connor Worley <cworley@dropbox.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Checklist
General Contributing
Is This a Code Change?
Validation
This is my first attempt at getting the workflow for this SDK fully running on Linux. There are several changes.
both Windows andLinux.