Skip to content

Commit

Permalink
Merge pull request #1461 from nunit/issue-1435
Browse files Browse the repository at this point in the history
Replace AppVeyor with GitHub workflow
  • Loading branch information
CharliePoole authored Aug 13, 2024
2 parents 12f638b + 1f5720c commit 27d6514
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 47 deletions.
15 changes: 2 additions & 13 deletions .github/workflows/NUnitConsoleAndEngine.CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ env:
DOTNET_CLI_TELEMETRY_OPTOUT: true # Disable sending .NET CLI telemetry

jobs:
build-windows:
name: Windows Build
ContinuousIntegration:
name: Continuous Integration
runs-on: windows-latest

env:
Expand Down Expand Up @@ -49,7 +49,6 @@ jobs:
CHOCO_API_KEY: ${{ secrets.PUBLISH_CHOCOLATEY_ORG }}
GITHUB_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_CP }}

#shell: pwsh
# 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

Expand All @@ -62,16 +61,6 @@ jobs:
path: "build-results/*.binlog"
# if-no-files-found: error

# Wait with this until package errors (tests following packaging) are all fixed
# - name: 📦 Package
# run: dotnet tool run dotnet-cake --target=Package

# - name: 💾 Upload build artifacts
# uses: actions/upload-artifact@v4
# with:
# name: Package
# path: package

- name: 💾 Upload test results
uses: actions/upload-artifact@v4
if: always()
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/PublishDraftRelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Publish Draft Release on GitHub

on:
workflow_dispatch:
inputs:
version:
description: 'Release version (must match a mileston)'
required: true
type: string

jobs:
draft-release:
runs-on: ubuntu-latest

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

- name: 🛠️ Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.100

- name: 🛠️ Install dotnet tools
run: dotnet tool restore

- name: 🔨 Create Draft Release
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_CP }}

run: dotnet cake --target=CreateDraftRelease --packageVersion={{inputs.version}}
1 change: 0 additions & 1 deletion NUnitConsole.sln
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
.editorconfig = .editorconfig
.gitattributes = .gitattributes
.gitignore = .gitignore
appveyor.yml = appveyor.yml
azure-pipelines.yml = azure-pipelines.yml
build.cake = build.cake
build.cmd = build.cmd
Expand Down
33 changes: 0 additions & 33 deletions appveyor.yml

This file was deleted.

0 comments on commit 27d6514

Please sign in to comment.