Skip to content

Update GHA workflow #39

Update GHA workflow

Update GHA workflow #39

Triggered via push November 5, 2023 03:44
Status Failure
Total duration 4m 26s
Artifacts

azure-dev.yaml

on: push
Matrix: Build Test
Fit to window
Zoom out
Zoom in

Annotations

1 error and 20 warnings
Build Test (windows-latest)
Process completed with exit code 1.
Build Test (ubuntu-latest): src/YouTubeSummariser.ApiApp/Program.cs#L25
Dereference of a possibly null reference.
Build Test (ubuntu-latest): src/YouTubeSummariser.ApiApp/Program.cs#L29
The type 'YouTubeSummariser.Services.Configurations.OpenAISettings?' cannot be used as type parameter 'TService' in the generic type or method 'ServiceCollectionServiceExtensions.AddSingleton<TService>(IServiceCollection, TService)'. Nullability of type argument 'YouTubeSummariser.Services.Configurations.OpenAISettings?' doesn't match 'class' constraint.
Build Test (ubuntu-latest): src/YouTubeSummariser.ApiApp/Program.cs#L31
Dereference of a possibly null reference.
Build Test (ubuntu-latest): src/YouTubeSummariser.ApiApp/Program.cs#L35
The type 'YouTubeSummariser.Services.Configurations.PromptSettings?' cannot be used as type parameter 'TService' in the generic type or method 'ServiceCollectionServiceExtensions.AddSingleton<TService>(IServiceCollection, TService)'. Nullability of type argument 'YouTubeSummariser.Services.Configurations.PromptSettings?' doesn't match 'class' constraint.
Build Test (ubuntu-latest): src/YouTubeSummariser.ApiApp/Program.cs#L37
Dereference of a possibly null reference.
Build Test (ubuntu-latest): src/YouTubeSummariser.ApiApp/Program.cs#L37
Possible null reference argument for parameter 'uriString' in 'Uri.Uri(string uriString)'.
Build Test (ubuntu-latest): src/YouTubeSummariser.ApiApp/Program.cs#L38
Possible null reference argument for parameter 'key' in 'AzureKeyCredential.AzureKeyCredential(string key)'.
Build Test (ubuntu-latest): src/YouTubeSummariser.ApiApp/Triggers/SummariseHttpTrigger.cs#L44
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
Build Test (ubuntu-latest): src/YouTubeSummariser.ApiApp2/Program.cs#L22
The type 'YouTubeSummariser.Services.Configurations.OpenAISettings?' cannot be used as type parameter 'TService' in the generic type or method 'ServiceCollectionServiceExtensions.AddSingleton<TService>(IServiceCollection, TService)'. Nullability of type argument 'YouTubeSummariser.Services.Configurations.OpenAISettings?' doesn't match 'class' constraint.
Build Test (windows-latest): src/YouTubeSummariser.Components/YouTubeSummariserComponent.razor.cs#L15
Non-nullable property 'YouTube' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
Build Test (windows-latest): src/YouTubeSummariser.Components/YouTubeSummariserComponent.razor.cs#L18
Non-nullable property 'JSR' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
Build Test (windows-latest): src/YouTubeSummariser.Components/ProgressBarJsInterop.cs#L38
Change ProgressBarJsInterop.DisposeAsync() to call GC.SuppressFinalize(object). This will prevent derived types that introduce a finalizer from needing to re-implement 'IDisposable' to call it. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1816)
Build Test (windows-latest): src/YouTubeSummariser.ApiApp/Program.cs#L25
Dereference of a possibly null reference.
Build Test (windows-latest): src/YouTubeSummariser.ApiApp/Program.cs#L29
The type 'YouTubeSummariser.Services.Configurations.OpenAISettings?' cannot be used as type parameter 'TService' in the generic type or method 'ServiceCollectionServiceExtensions.AddSingleton<TService>(IServiceCollection, TService)'. Nullability of type argument 'YouTubeSummariser.Services.Configurations.OpenAISettings?' doesn't match 'class' constraint.
Build Test (windows-latest): src/YouTubeSummariser.ApiApp/Program.cs#L31
Dereference of a possibly null reference.
Build Test (windows-latest): src/YouTubeSummariser.ApiApp/Program.cs#L35
The type 'YouTubeSummariser.Services.Configurations.PromptSettings?' cannot be used as type parameter 'TService' in the generic type or method 'ServiceCollectionServiceExtensions.AddSingleton<TService>(IServiceCollection, TService)'. Nullability of type argument 'YouTubeSummariser.Services.Configurations.PromptSettings?' doesn't match 'class' constraint.
Build Test (windows-latest): src/YouTubeSummariser.ApiApp/Program.cs#L37
Dereference of a possibly null reference.
Build Test (windows-latest): src/YouTubeSummariser.ApiApp/Program.cs#L37
Possible null reference argument for parameter 'uriString' in 'Uri.Uri(string uriString)'.