Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 15 additions & 33 deletions .github/workflows/NUnitConsoleAndEngine.CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@

on:
workflow_dispatch:
pull_request:
push:
branches-ignore:
- "azure-*"
paths-ignore:
- "*.txt"
- "*.md"
branches:
- main
pull_request:
release:

env:
Expand All @@ -18,7 +15,7 @@ env:
jobs:
ContinuousIntegration:
name: Continuous Integration
runs-on: windows-2025-vs2026
runs-on: windows-latest

env:
MYGET_API_KEY: ${{ secrets.PUBLISH_MYGET_ORG }}
Expand All @@ -28,12 +25,12 @@ jobs:

steps:
- name: ⤵️ Checkout Source
uses: actions/checkout@v4
uses: actions/checkout@v7
with:
fetch-depth: 0

- name: 🛠️ Setup .NET
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@v6
with:
dotnet-version: |
3.1.x
Expand All @@ -45,30 +42,15 @@ jobs:
- name: 🔧 Install dotnet tools
run: dotnet tool restore

- name: 🍰 Run cake
env:
MYGET_API_KEY: ${{ secrets.PUBLISH_MYGET_ORG }}
NUGET_API_KEY: ${{ secrets.PUBLISH_NUGET_ORG }}
CHOCO_API_KEY: ${{ secrets.PUBLISH_CHOCOLATEY_ORG }}
GITHUB_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_CP }}

# If you need to get more verbose logging, add the following to the dotnet-cake above: --verbosity=diagnostic
run: dotnet cake --target=ContinuousIntegration --configuration=Release

- name: 🪵 Upload build logs
if: always()
uses: actions/upload-artifact@v4
with:
name: NUnitConsoleLogs
# This path is defined in build-settings.cake
path: "build-results/*.binlog"
# if-no-files-found: error
- name: 🔨 Build, Test, Package and Publish (Cake script decides)
run: dotnet cake --target=ContinuousIntegration --configuration=Release #--verbosity=diagnostic

- name: 🪵 Upload NUnit Package Test Results
# Upload packages before publishing in case of later failures
- name: 💾 Upload build artifacts
if: always()
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: NUnit Results
# This path is defined in build-settings.cake
path: "package/results/"
# if-no-files-found: error
name: NUnitConsole Packages
path: |
packages/*.nupkg
packages/results/
2 changes: 1 addition & 1 deletion build.cake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Load the recipe
#load nuget:?package=NUnit.Cake.Recipe&version=2.0.0-beta.3.5
#load nuget:?package=NUnit.Cake.Recipe&version=2.0.0-beta.4.2
// Comment out above line and uncomment below for local tests of recipe changes
//#load ../NUnit.Cake.Recipe/src/NUnit.Cake.Recipe/content/*.cake

Expand Down
3 changes: 3 additions & 0 deletions test.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
$version_info = $(dotnet minver)
echo Publishing as