diff --git a/.github/workflows/NUnitConsoleAndEngine.CI.yml b/.github/workflows/NUnitConsoleAndEngine.CI.yml index b1a385832..5d3d582d2 100644 --- a/.github/workflows/NUnitConsoleAndEngine.CI.yml +++ b/.github/workflows/NUnitConsoleAndEngine.CI.yml @@ -2,13 +2,10 @@ on: workflow_dispatch: - pull_request: push: - branches-ignore: - - "azure-*" - paths-ignore: - - "*.txt" - - "*.md" + branches: + - main + pull_request: release: env: @@ -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 }} @@ -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 @@ -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/ diff --git a/build.cake b/build.cake index 834388aac..fc4440e18 100644 --- a/build.cake +++ b/build.cake @@ -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 diff --git a/test.ps1 b/test.ps1 new file mode 100644 index 000000000..18e9810b5 --- /dev/null +++ b/test.ps1 @@ -0,0 +1,3 @@ +$version_info = $(dotnet minver) +echo Publishing as +