diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 0a638cf..53e2c35 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -9,7 +9,13 @@ on:
- '**.csproj'
- '**/packages.lock.json'
- '.github/workflows/test.yml'
- workflow_call:
+ workflow_call:
+ inputs:
+ require-current-artifact:
+ description: Require the server artifact from the current workflow run
+ required: false
+ type: boolean
+ default: false
jobs:
build-and-test:
@@ -25,6 +31,8 @@ jobs:
repository: ZNotify/cs-sdk
- uses: ZNotify/test-server-action@master
+ with:
+ require-current-artifact: ${{ inputs.require-current-artifact || false }}
- uses: actions/cache@v3
with:
@@ -43,4 +51,5 @@ jobs:
run: dotnet build --configuration Release --no-restore
- name: Test
- run: dotnet test --no-restore --verbosity normal
+ run: dotnet test --no-restore --verbosity normal --collect:"XPlat Code Coverage"
+
diff --git a/src/ZNotify.Test/ZNotify.Test.csproj b/src/ZNotify.Test/ZNotify.Test.csproj
index fe638f5..a2a196c 100644
--- a/src/ZNotify.Test/ZNotify.Test.csproj
+++ b/src/ZNotify.Test/ZNotify.Test.csproj
@@ -14,7 +14,7 @@
-
+
diff --git a/src/ZNotify/ZNotify.csproj b/src/ZNotify/ZNotify.csproj
index c8a7b80..84e5284 100644
--- a/src/ZNotify/ZNotify.csproj
+++ b/src/ZNotify/ZNotify.csproj
@@ -34,7 +34,7 @@
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/src/ZNotify/packages.lock.json b/src/ZNotify/packages.lock.json
index 49b17d7..7a5cfb9 100644
--- a/src/ZNotify/packages.lock.json
+++ b/src/ZNotify/packages.lock.json
@@ -14,9 +14,9 @@
},
"Microsoft.Extensions.ApiDescription.Client": {
"type": "Direct",
- "requested": "[9.0.0, )",
- "resolved": "9.0.0",
- "contentHash": "IdMbOqk1voSh3Bavt5MRDXtJNNrMvRaiXHA8qZ7VdIA+U2I9jBAexuoo8eWlvneDuwB9al3Z2u14rNSB25u5mg=="
+ "requested": "[9.0.1, )",
+ "resolved": "9.0.1",
+ "contentHash": "esKA4K/NyEPnGKTgcLIQuL+ssZhz7UGba6G5Zjy7mrqpDCkSVZpKiGo/eWIITxShUsN9/ZX+x6MjFX1A2J1Vqw=="
},
"Newtonsoft.Json": {
"type": "Direct",
@@ -59,4 +59,4 @@
}
}
}
-}
\ No newline at end of file
+}