From 665451a3d42c9e9e2e62d5e770d12f3ed0b1fca9 Mon Sep 17 00:00:00 2001 From: Jason Naylor Date: Wed, 10 Feb 2021 11:05:25 -0800 Subject: [PATCH 1/2] Github Actions for build and test --- .github/workflows/PR.yml | 51 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .github/workflows/PR.yml diff --git a/.github/workflows/PR.yml b/.github/workflows/PR.yml new file mode 100644 index 00000000..c6456092 --- /dev/null +++ b/.github/workflows/PR.yml @@ -0,0 +1,51 @@ + +name: Hearthis CI workflow + +on: + pull_request: + branches: [ master ] + +jobs: + + build: + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, windows-latest] + runs-on: ${{ matrix.os }} + + steps: + - name: Checkout + uses: actions/checkout@5a4ac90 + with: + fetch-depth: 0 + + # Install the .NET Core workload + - name: Install .NET Core + uses: actions/setup-dotnet@51f6837 + with: + dotnet-version: 5.0.x + + # Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild + - name: Setup MSBuild.exe (Windows OS) + uses: microsoft/setup-msbuild@c26a08b + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: true # So the PATH can be set by this step + if: ${{ matrix.os == 'windows-latest' }} + + # Run the unit tests + - name: Restore and Build + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: true # So gitversion can set environment vars during the build + run: msbuild build/build.proj /t:Build + + - name: Test + if: success() + run: msbuild build/build.proj /t:Test + + - name: Test Report + uses: MirrorNG/nunit-reporter@eba9570 + if: always() + with: + path: output/**/TestResults.xml + access-token: ${{ secrets.GITHUB_TOKEN }} From a578327415ab914b3befb03d49f8fefb2211fc29 Mon Sep 17 00:00:00 2001 From: tombogle Date: Fri, 1 Aug 2025 16:27:26 -0400 Subject: [PATCH 2/2] [WIP] Don't remember exactly where I left off on this, but it seems to fit within this branch. --- .github/workflows/build.yml | 50 +++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..e7dfc623 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,50 @@ +name: CI Build + +on: + push: + branches: + - '*' + - '!' + - '!2.0' + pull_request: + branches: + - '*' + + push: + branches: + - master + - '!2.0' + pull_request: + - '!2.0' + workflow_dispatch: + +jobs: + build: + runs-on: windows-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup NuGet + uses: NuGet/setup-nuget@v2 + + - name: Restore NuGet packages + run: nuget restore HearThis.sln + + - name: Build solution + run: msbuild HearThis.sln /t:Build /p:Configuration=Release /p:Platform=x64 + + - name: Run tests + run: | + mkdir output + nunit3-console.exe --result=output/TestResults.xml --noheader output/Release/*Tests.dll + env: + NUnitConsolePath: packages/NUnit.ConsoleRunner/tools + + - name: Create release notes + run: | + ConvertReleaseNotesToHtml.exe --input DistFiles/ReleaseNotes.md --output output/ReleaseNotes.html + + - name: Create download pointers + run: msbuild build/build.proj /t:MakeDownloadPointers