From 4434801b441d3d8ba93c00649be148df52b43ed5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Sm=C3=B3=C5=82ka?= Date: Thu, 22 Dec 2022 10:45:33 +0100 Subject: [PATCH] Additional fixes --- .github/workflows/dotnetcore.yml | 8 ++++++-- src/ZNetCS.AspNetCore.IPFiltering/OptionBase.cs | 2 -- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml index 4865cf2..356aaee 100644 --- a/.github/workflows/dotnetcore.yml +++ b/.github/workflows/dotnetcore.yml @@ -1,6 +1,10 @@ name: build -on: [push] +on: + push: + branches: [main, master] + pull_request: + branches: [main, master] jobs: build: @@ -9,7 +13,7 @@ jobs: strategy: matrix: - os: [windows-latest] + os: [macOS-latest, ubuntu-latest, windows-latest] steps: - name: Setup .NET Core 3.1 uses: actions/setup-dotnet@v1 diff --git a/src/ZNetCS.AspNetCore.IPFiltering/OptionBase.cs b/src/ZNetCS.AspNetCore.IPFiltering/OptionBase.cs index 6b4963e..4cea2e1 100644 --- a/src/ZNetCS.AspNetCore.IPFiltering/OptionBase.cs +++ b/src/ZNetCS.AspNetCore.IPFiltering/OptionBase.cs @@ -44,7 +44,6 @@ public abstract class OptionBase /// /// Gets or sets the blacklist. /// - [AllowNull] [SuppressMessage("Usage", "CA2227:Collection properties should be read only", Justification = "Options serialization.")] public ICollection? Blacklist { @@ -79,7 +78,6 @@ public ICollection? Blacklist /// /// Gets or sets the whitelist. /// - [AllowNull] [SuppressMessage("Usage", "CA2227:Collection properties should be read only", Justification = "Options serialization.")] public ICollection? Whitelist {