Skip to content

Merge pull request #334 from Bouska/patch-1 #427

Merge pull request #334 from Bouska/patch-1

Merge pull request #334 from Bouska/patch-1 #427

Triggered via push February 14, 2024 17:50
Status Failure
Total duration 4m 16s
Artifacts 1

ci.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 29 warnings
D:\a\gsudo\gsudo\src\gsudo.Wrappers.Tests\Invoke-gsudo.Tests.ps1 ► PS Invoke-Gsudo (PSv7).It throws with .Net Exceptions: ./testResults_PS7.xml#L0
Failed test found in: ./testResults_PS7.xml Error: at { Invoke-gsudo { [int]::Parse('foo') } } | Should -throw "*Input string was not*", D:\a\gsudo\gsudo\src\gsudo.Wrappers.Tests\Invoke-gsudo.Tests.ps1:46
Test
[-] PS Invoke-Gsudo (PSv7).It throws with .Net Exceptions 547ms (546ms|1ms)
Test
Failed test were found and 'fail-on-error' option is set to true
Build
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-dotnet@v2, actions/checkout@v2, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Build
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Test
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-dotnet@v2, actions/checkout@v2, dorny/test-reporter@v1.5.0. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Test
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, dorny/test-reporter@v1.5.0. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Test: src/gsudo/Tokens/TokenProvider.cs#L122
Unreachable code detected
Test: src/gsudo/Helpers/ServiceHelper.cs#L52
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
Test: src/gsudo/ProcessHosts/AttachedConsoleHost.cs#L41
The variable 'ex' is declared but never used
Test: src/gsudo/InputParameters.cs#L32
The property name 'IntegrityLevel' is confusing given the existence of method 'GetIntegrityLevel'. Rename or remove one of these members. (https://docs.microsoft.com/visualstudio/code-quality/ca1721-property-names-should-not-match-get-methods)
Test: src/gsudo/Commands/StatusCommand.cs#L99
In method 'GetJsonValue', replace the call to 'ToLowerInvariant' with 'ToUpperInvariant'. (https://docs.microsoft.com/visualstudio/code-quality/ca1308-normalize-strings-to-uppercase)
Test: src/gsudo/Commands/ServiceCommand.cs#L62
Consider calling ConfigureAwait on the awaited task (https://docs.microsoft.com/visualstudio/code-quality/ca2007-do-not-directly-await-task)
Test: src/gsudo/Helpers/ExtensionMethods.cs#L126
The behavior of 'char.ToString()' could vary based on the current user's locale settings. Replace this call in 'string.Contains(char, StringComparison)' with a call to 'char.ToString(IFormatProvider)'. (https://docs.microsoft.com/visualstudio/code-quality/ca1305-specify-iformatprovider)
Test: src/gsudo/Tokens/TokenProvider.cs#L31
Parameter tokenAccess of method CreateFromProcessToken is never used. Remove the parameter or use it in the method body. (https://docs.microsoft.com/visualstudio/code-quality/ca1801-review-unused-parameters)
Test: src/gsudo/Tokens/TokenProvider.cs#L119
Parameter user of method CreateFromLogin is never used. Remove the parameter or use it in the method body. (https://docs.microsoft.com/visualstudio/code-quality/ca1801-review-unused-parameters)
Test: src/gsudo/Tokens/TokenProvider.cs#L119
Parameter password of method CreateFromLogin is never used. Remove the parameter or use it in the method body. (https://docs.microsoft.com/visualstudio/code-quality/ca1801-review-unused-parameters)
Test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

Artifacts

Produced during runtime
Name Size
Binaries Expired
69.6 MB