Commit 26e803c
ci: Add step to run unit tests in workflow
Modifies the GitHub Actions workflow (`.github/workflows/dotnetcore.yml`)
to include a step for running unit tests using `dotnet test`.
This ensures that tests are executed automatically as part of the
CI process after dependencies are restored and before the
solution is packed and published. The tests are run with
the Release configuration.
refactor: Separate CI tests and manual NuGet publication workflows
I've revised the GitHub Actions CI/CD setup for you:
1. Automated Testing (`ci-tests.yml`):
- I renamed this from `dotnetcore.yml`.
- It now triggers on pushes and pull requests to all branches (`**`).
- It performs checkout, .NET setup, dependency restore, and runs unit tests.
- I've removed the packaging and publishing steps from this workflow.
2. Manual NuGet Publication (`manual-publish.yml`):
- This is a new workflow file.
- You can trigger it manually via `workflow_dispatch` from the GitHub Actions UI.
- It contains steps for checkout, .NET setup, restore, packing the solution,
and publishing to both nuget.org and GitHub Packages.
This change allows for continuous testing on all development branches and
provides you with explicit control over the release and publication of NuGet packages.1 parent b8b87e0 commit 26e803c
File tree
3 files changed
+35
-10
lines changed- .github/workflows
3 files changed
+35
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
Lines changed: 3 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
| 4 | + | |
9 | 5 | | |
10 | 6 | | |
11 | | - | |
12 | | - | |
| 7 | + | |
13 | 8 | | |
14 | 9 | | |
15 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
10 | 16 | | |
11 | 17 | | |
12 | 18 | | |
| |||
0 commit comments