From 0892358b2c068ee17205a494d9bfb04f325a1a15 Mon Sep 17 00:00:00 2001 From: bUnit bot Date: Mon, 3 May 2021 12:54:16 +0000 Subject: [PATCH 1/7] Set version to '2.11-preview' --- version.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.json b/version.json index eba56e5..9fdd2a0 100644 --- a/version.json +++ b/version.json @@ -1,6 +1,6 @@ { "$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json", - "version": "2.10-preview", + "version": "2.11-preview", "assemblyVersion": { "precision": "revision" }, From ee93f4d1073b3408f05fa03d30099960e7bc010a Mon Sep 17 00:00:00 2001 From: Egil Hansen Date: Tue, 9 Nov 2021 12:07:30 +0000 Subject: [PATCH 2/7] Added additional project --- .github/workflows/release-preview.yml | 6 ++--- .github/workflows/release.yml | 4 ++-- .github/workflows/verification.yml | 7 +++++- src/Program.cs | 14 ----------- src/ProjectA/Program.cs | 8 +++++++ src/ProjectA/ProjectA.csproj | 8 +++++++ src/ProjectB/Program.cs | 8 +++++++ src/ProjectB/ProjectB.csproj | 9 +++++++ src/workflows.csproj | 8 ------- workflows.sln | 34 +++++++++++++++++++++++++++ 10 files changed, 78 insertions(+), 28 deletions(-) delete mode 100644 src/Program.cs create mode 100644 src/ProjectA/Program.cs create mode 100644 src/ProjectA/ProjectA.csproj create mode 100644 src/ProjectB/Program.cs create mode 100644 src/ProjectB/ProjectB.csproj delete mode 100644 src/workflows.csproj create mode 100644 workflows.sln diff --git a/.github/workflows/release-preview.yml b/.github/workflows/release-preview.yml index 55fa312..fe0c009 100644 --- a/.github/workflows/release-preview.yml +++ b/.github/workflows/release-preview.yml @@ -23,13 +23,13 @@ jobs: - name: ⚙️ Setup GIT versioning uses: dotnet/nbgv@v0.4.0 - - name: ⚙️ Setup dotnet 5.0.x + - name: ⚙️ Setup dotnet 6.0.x uses: actions/setup-dotnet@v1 with: - dotnet-version: '5.0.x' + dotnet-version: '6.0.x' - name: 🛠️ Building library in release mode - run: dotnet pack src/ -c release -p:ContinuousIntegrationBuild=true + run: dotnet pack -c release -p:ContinuousIntegrationBuild=true - name: 🛠️ Upload library to GitHub Package Repository run: echo "TODO" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2a6ad7e..fac9f45 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -59,10 +59,10 @@ jobs: with: setAllVars: true - - name: ⚙️ Setup dotnet 5.0.x + - name: ⚙️ Setup dotnet 6.0.x uses: actions/setup-dotnet@v1 with: - dotnet-version: '5.0.x' + dotnet-version: '6.0.x' - name: 🛠️ Update changelog uses: thomaseizinger/keep-a-changelog-new-release@1.2.1 diff --git a/.github/workflows/verification.yml b/.github/workflows/verification.yml index dd2c5ac..39b9747 100644 --- a/.github/workflows/verification.yml +++ b/.github/workflows/verification.yml @@ -26,10 +26,15 @@ jobs: with: fetch-depth: 0 + - name: ⚙️ Setup dotnet 6.0.x + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '6.0.x' + - name: ⚙️ Setup GIT versioning uses: dotnet/nbgv@v0.4.0 with: setAllVars: true - name: 🛠️ Building library in release mode - run: dotnet build src + run: dotnet build diff --git a/src/Program.cs b/src/Program.cs deleted file mode 100644 index 0cf52c9..0000000 --- a/src/Program.cs +++ /dev/null @@ -1,14 +0,0 @@ -using System; - -namespace workflows -{ - class Program - { - static void Main(string[] args) - { - Console.WriteLine("Hello World from Twitch!"); - Console.WriteLine("Hello World from Twitch!"); - Console.WriteLine("Hello World from GitHub!"); - } - } -} diff --git a/src/ProjectA/Program.cs b/src/ProjectA/Program.cs new file mode 100644 index 0000000..c00b123 --- /dev/null +++ b/src/ProjectA/Program.cs @@ -0,0 +1,8 @@ +using System; + +namespace ProjectA +{ + class Program + { + } +} diff --git a/src/ProjectA/ProjectA.csproj b/src/ProjectA/ProjectA.csproj new file mode 100644 index 0000000..b62b847 --- /dev/null +++ b/src/ProjectA/ProjectA.csproj @@ -0,0 +1,8 @@ + + + + net6.0 + ProjectA + + + diff --git a/src/ProjectB/Program.cs b/src/ProjectB/Program.cs new file mode 100644 index 0000000..20d476e --- /dev/null +++ b/src/ProjectB/Program.cs @@ -0,0 +1,8 @@ +using System; + +namespace ProjectB +{ + class Program + { + } +} diff --git a/src/ProjectB/ProjectB.csproj b/src/ProjectB/ProjectB.csproj new file mode 100644 index 0000000..bb8f59a --- /dev/null +++ b/src/ProjectB/ProjectB.csproj @@ -0,0 +1,9 @@ + + + + net6.0 + ProjectB + preview + + + diff --git a/src/workflows.csproj b/src/workflows.csproj deleted file mode 100644 index 2082704..0000000 --- a/src/workflows.csproj +++ /dev/null @@ -1,8 +0,0 @@ - - - - Exe - net5.0 - - - diff --git a/workflows.sln b/workflows.sln new file mode 100644 index 0000000..6af8ba0 --- /dev/null +++ b/workflows.sln @@ -0,0 +1,34 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30114.105 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{A24501FC-161B-4C00-9F13-0CBBE5BB0D9B}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ProjectA", "src\ProjectA\ProjectA.csproj", "{811918FA-77A3-4638-AB22-A3288C140A6F}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ProjectB", "src\ProjectB\ProjectB.csproj", "{BB64E9B9-E322-4EB1-8084-941037CF6D29}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {811918FA-77A3-4638-AB22-A3288C140A6F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {811918FA-77A3-4638-AB22-A3288C140A6F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {811918FA-77A3-4638-AB22-A3288C140A6F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {811918FA-77A3-4638-AB22-A3288C140A6F}.Release|Any CPU.Build.0 = Release|Any CPU + {BB64E9B9-E322-4EB1-8084-941037CF6D29}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {BB64E9B9-E322-4EB1-8084-941037CF6D29}.Debug|Any CPU.Build.0 = Debug|Any CPU + {BB64E9B9-E322-4EB1-8084-941037CF6D29}.Release|Any CPU.ActiveCfg = Release|Any CPU + {BB64E9B9-E322-4EB1-8084-941037CF6D29}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(NestedProjects) = preSolution + {811918FA-77A3-4638-AB22-A3288C140A6F} = {A24501FC-161B-4C00-9F13-0CBBE5BB0D9B} + {BB64E9B9-E322-4EB1-8084-941037CF6D29} = {A24501FC-161B-4C00-9F13-0CBBE5BB0D9B} + EndGlobalSection +EndGlobal From fb7a9f35b476946f7cdd3a77b9e2705effe21a39 Mon Sep 17 00:00:00 2001 From: Steven Giesel Date: Wed, 9 Nov 2022 07:29:58 +0100 Subject: [PATCH 3/7] Update workflows to verify PR --- .github/workflows/prepare-release.yml | 1 - .github/workflows/release-preview.yml | 53 ++++++++++---- .github/workflows/release.yml | 72 ++++++++++-------- .github/workflows/verification.yml | 101 ++++++++++++++++++++++---- 4 files changed, 171 insertions(+), 56 deletions(-) diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml index 8301425..bc57aa9 100644 --- a/.github/workflows/prepare-release.yml +++ b/.github/workflows/prepare-release.yml @@ -33,7 +33,6 @@ jobs: run: | echo "::error file=CHANGELOG.md::The unreleased section in the changelog is empty. Nothing to release." exit 1 - - name: ⚙️ Import GPG key id: import_gpg uses: crazy-max/ghaction-import-gpg@v3 diff --git a/.github/workflows/release-preview.yml b/.github/workflows/release-preview.yml index fe0c009..b36b5fc 100644 --- a/.github/workflows/release-preview.yml +++ b/.github/workflows/release-preview.yml @@ -3,18 +3,23 @@ concurrency: 'release-preview' on: workflow_run: - branches: [ main ] workflows: [ 'verification' ] - types: [ completed ] + types: [completed] + branches: [main, v2] workflow_dispatch: + inputs: + nugetRelease: + description: 'Release to NuGet? Set to "true" to release to NuGet.org as well as GPR.' + required: true + default: 'false' jobs: release-preview: - if: ${{ github.event.workflow_run.conclusion == 'success' }} + if: github.event_name == 'workflow_dispatch' || (github.ref == 'refs/heads/main' && ${{ github.event.workflow_run.conclusion == 'success' }}) || (github.ref == 'refs/heads/v2' && ${{ github.event.workflow_run.conclusion == 'success' }}) runs-on: ubuntu-latest steps: - + - name: 🛒 Checkout repository uses: actions/checkout@v2 with: @@ -22,14 +27,36 @@ jobs: - name: ⚙️ Setup GIT versioning uses: dotnet/nbgv@v0.4.0 - - - name: ⚙️ Setup dotnet 6.0.x - uses: actions/setup-dotnet@v1 + + - name: ⚙️ Setup dotnet versions + uses: actions/setup-dotnet@v3 + with: + dotnet-version: | + 3.1.x + 5.0.x + 6.0.x + 7.0.x + include-prerelease: true + + - name: 🎨 Setup color + run: | + echo "DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION=1" >> $GITHUB_ENV + echo "TERM=xterm" >> $GITHUB_ENV + + - name: 🛠️ Update tokens in project files + uses: cschleiden/replace-tokens@v1 with: - dotnet-version: '6.0.x' - - - name: 🛠️ Building library in release mode - run: dotnet pack -c release -p:ContinuousIntegrationBuild=true - + files: '["*.csproj", "**/*.csproj"]' + + - name: 🛠️ Packing library in release mode + run: | + dotnet pack -c Release -o ${GITHUB_WORKSPACE}/packages -p:ContinuousIntegrationBuild=true -p:publicrelease=true + dotnet pack src/bunit/ -c Release -o ${GITHUB_WORKSPACE}/packages -p:ContinuousIntegrationBuild=true -p:publicrelease=true + dotnet pack src/bunit.template/ -c Release -o ${GITHUB_WORKSPACE}/packages -p:ContinuousIntegrationBuild=true -p:publicrelease=true + - name: 🛠️ Upload library to GitHub Package Repository - run: echo "TODO" + run: dotnet nuget push ${GITHUB_WORKSPACE}/packages/*.nupkg -k ${{ secrets.GITHUB_TOKEN }} -s https://nuget.pkg.github.com/bunit-dev/index.json --skip-duplicate --no-symbols + + - name: 🛠️ Upload library to NuGet.org repository + if: github.event.inputs.nugetRelease == 'true' + run: dotnet nuget push ${GITHUB_WORKSPACE}/packages/*.nupkg -k ${{ secrets.NUGET_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate --no-symbols diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fac9f45..44794ff 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,84 +8,98 @@ on: types: - closed paths-ignore: - - 'docs/**' + - 'docs/**' workflow_dispatch: - -jobs: + +jobs: release: name: 🎁 Publish new release # Only run on manual dispatch or on merged 'release-' pull requests - if: github.ref == 'refs/heads/stable' || + if: github.ref == 'refs/heads/stable' || github.event.pull_request.merged == true && contains(github.head_ref, 'release/v') == true runs-on: ubuntu-latest steps: - + - name: 🛒 Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 token: ${{ secrets.BUNIT_BOT_TOKEN }} - + - name: 🛠️ Get Changelog Entry id: changelog_reader uses: mindsers/changelog-reader-action@v2 with: version: Unreleased path: ./CHANGELOG.md - + - name: ☑ Check that release contains changes if: steps.changelog_reader.outputs.changes == '' run: | echo "::error file=CHANGELOG.md::The unreleased section in the changelog is empty. Nothing to release." exit 1 - + - name: ⚙️ Import GPG key id: import_gpg uses: crazy-max/ghaction-import-gpg@v3 with: gpg-private-key: ${{ secrets.BUNIT_BOT_GPG_PRIVATE_KEY }} passphrase: ${{ secrets.BUNIT_BOT_GPG_KEY_PASSPHRASE }} - + - name: ⚙️ Setup CI GIT run: | git config user.name "${{ steps.import_gpg.outputs.name }}" git config user.email ${{ steps.import_gpg.outputs.email }} git config --global user.signingkey ${{ steps.import_gpg.outputs.keyid }} - git config --global commit.gpgsign true - + git config --global commit.gpgsign true + - name: ⚙️ Setup GIT versioning uses: dotnet/nbgv@v0.4.0 with: - setAllVars: true - - - name: ⚙️ Setup dotnet 6.0.x - uses: actions/setup-dotnet@v1 + setAllVars: true + + - name: ⚙️ Setup dotnet versions + uses: actions/setup-dotnet@v3 with: - dotnet-version: '6.0.x' + dotnet-version: | + 3.1.x + 5.0.x + 6.0.x + 7.0.x + include-prerelease: true - name: 🛠️ Update changelog uses: thomaseizinger/keep-a-changelog-new-release@1.2.1 with: version: ${{ env.NBGV_SemVer2 }} - + - name: 🛠️ Update changelog compare URLs shell: bash run: | sed -i -E "s/compare\/([0-9]+\.[0-9]+\.[0-9]+)\.\.\.([0-9]+\.[0-9]+\.[0-9]+)/compare\/v\1...v\2/" CHANGELOG.md sed -i -E "s/compare\/([0-9]+\.[0-9]+\.[0-9]+)\.\.\.HEAD/compare\/v\1...HEAD/" CHANGELOG.md - + - name: 🛠️ Commit CHANGELOG.md to stable branch run: | git add CHANGELOG.md git commit -S -m "Updated CHANGELOG.md for ${{ env.NBGV_SimpleVersion }} release" echo "RELEASE_COMMIT_HASH=$(git rev-parse stable)" >> $GITHUB_ENV - - name: 🛠️ Building library in release mode - run: dotnet pack src/ -c release -p:ContinuousIntegrationBuild=true - + - name: 🛠️ Update tokens in project files + uses: cschleiden/replace-tokens@v1 + with: + files: '["*.csproj", "**/*.csproj"]' + + - name: 🛠️ Packing library in release mode + run: | + dotnet pack -c Release -o ${GITHUB_WORKSPACE}/packages -p:ContinuousIntegrationBuild=true + dotnet pack src/bunit/ -c Release -o ${GITHUB_WORKSPACE}/packages -p:ContinuousIntegrationBuild=true + dotnet pack src/bunit.template/ -c Release -o ${GITHUB_WORKSPACE}/packages -p:ContinuousIntegrationBuild=true + - name: 🛠️ Upload library to NuGet.org repository - run: echo "TODO" + run: | + dotnet nuget push ${GITHUB_WORKSPACE}/packages/*.nupkg -k ${{ secrets.NUGET_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate --no-symbols - name: ⏩ Push stable branch run: git push origin stable @@ -97,19 +111,19 @@ jobs: with: tag_name: v${{ env.NBGV_SemVer2 }} target_commitish: ${{ env.RELEASE_COMMIT_HASH }} - name: Release ${{ env.NBGV_SemVer2 }} + name: ${{ env.NBGV_SemVer2 }} body: ${{ steps.changelog_reader.outputs.changes }} draft: false prerelease: ${{ env.NBGV_PublicRelease == 'False' }} - - - name: ⏩ Merge stable with main, push main + + - name: ⏩ Merge stable with main, push to origin id: mergeMainline continue-on-error: true - run: | + run: | git checkout main git merge -S stable git push origin main - + - name: ⏭ Create pull request from stable to main when direct merge fails if: steps.mergeMainline.outcome == 'failure' uses: thomaseizinger/create-pull-request@1.0.0 @@ -122,5 +136,5 @@ jobs: reviewers: ${{ github.actor }} # By default, we request a review from the person who triggered the workflow. body: | Hi @${{ github.actor }} - + This PR was created because the [release workflow](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) failed to automatically merge stable into main. diff --git a/.github/workflows/verification.yml b/.github/workflows/verification.yml index 39b9747..cf1e81d 100644 --- a/.github/workflows/verification.yml +++ b/.github/workflows/verification.yml @@ -3,22 +3,32 @@ name: verification on: push: branches: - - main + - main + - v2 paths: - - 'src/**' + - 'src/**' - 'tests/**' - + pull_request: types: - opened - synchronize - - reopened + - reopened + workflow_dispatch: +concurrency: + group: verification-${{ github.ref }}-1 + cancel-in-progress: true + jobs: - verify: - name: 👌 Verify library - runs-on: ubuntu-latest + verify-bunit: + name: 👌 Verify bUnit + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + runs-on: ${{ matrix.os }} steps: - name: 🛒 Checkout repository @@ -26,15 +36,80 @@ jobs: with: fetch-depth: 0 - - name: ⚙️ Setup dotnet 6.0.x - uses: actions/setup-dotnet@v1 + - name: ⚙️ Setup dotnet versions + uses: actions/setup-dotnet@v3 with: - dotnet-version: '6.0.x' + dotnet-version: | + 3.1.x + 5.0.x + 6.0.x + 7.0.x + include-prerelease: true + + - name: 🎨 Setup color + if: matrix.os != 'windows-latest' + run: | + echo "DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION=1" >> $GITHUB_ENV + echo "TERM=xterm" >> $GITHUB_ENV - name: ⚙️ Setup GIT versioning uses: dotnet/nbgv@v0.4.0 with: setAllVars: true - - - name: 🛠️ Building library in release mode - run: dotnet build + + - name: 🍥 Replace tokens in files + uses: cschleiden/replace-tokens@v1 + with: + files: '["docs/site/*.md", "docs/**/*.md", "docs/**/*.tmpl.partial", "*.csproj", "**/*.csproj"]' + + - name: 🧪 Run unit tests (async) + run: | + dotnet test --filter Category!=sync -c release --blame-hang-timeout 15s --blame-hang-dump-type full --blame-crash-dump-type full + - name: 🧪 Run unit tests (sync) + run: | + dotnet test --filter Category!=async -c release --blame-hang-timeout 15s --blame-hang-dump-type full --blame-crash-dump-type full + - name: 📛 Upload hang- and crash-dumps on test failure + if: failure() + uses: actions/upload-artifact@v3 + with: + if-no-files-found: ignore + name: test-dumps + path: | + **/*hangdump.dmp + **/*crashdump.dmp + + - name: 🗳️ Pack library + run: | + dotnet pack -c release -o ${{ github.workspace }}/packages -p:ContinuousIntegrationBuild=true + dotnet pack src/bunit/ -c release -o ${{ github.workspace }}/packages -p:ContinuousIntegrationBuild=true + dotnet pack src/bunit.template/ -c release -o ${{ github.workspace }}/packages -p:ContinuousIntegrationBuild=true + + - name: ✳ Install bUnit template + run: | + dotnet new --install bunit.template::${NBGV_NuGetPackageVersion} --nuget-source ${{ github.workspace }}/packages + + - name: ✔ Verify xUnit template + run: | + dotnet new bunit --no-restore -o ${{ github.workspace }}/TemplateTestXunit + echo '' >> ${{ github.workspace }}/TemplateTestXunit/Directory.Build.props + dotnet restore ${{ github.workspace }}/TemplateTestXunit --source https://api.nuget.org/v3/index.json --source ${{ github.workspace }}/packages + dotnet test ${{ github.workspace }}/TemplateTestXunit + + - name: ✔ Verify NUnit template + run: | + dotnet new bunit --framework nunit --no-restore -o ${{ github.workspace }}/TemplateTestNunit + echo '' >> ${{ github.workspace }}/TemplateTestNunit/Directory.Build.props + dotnet restore ${{ github.workspace }}/TemplateTestNunit --source https://api.nuget.org/v3/index.json --source ${{ github.workspace }}/packages + dotnet test ${{ github.workspace }}/TemplateTestNunit + + - name: ✔ Verify MSTest template + run: | + dotnet new bunit --framework mstest --no-restore -o ${{ github.workspace }}/TemplateTestMstest + echo '' >> ${{ github.workspace }}/TemplateTestMstest/Directory.Build.props + dotnet restore ${{ github.workspace }}/TemplateTestMstest --source https://api.nuget.org/v3/index.json --source ${{ github.workspace }}/packages + dotnet test ${{ github.workspace }}/TemplateTestMstest + + # DocFx only works well on Windows currently + - name: 📄 Build documentation + if: matrix.os == 'windows-latest' + run: dotnet build docs/site/ From 87565ff0e41fb822d2e7b8ac03b323a4b728ab78 Mon Sep 17 00:00:00 2001 From: Steven Giesel Date: Wed, 9 Nov 2022 07:39:47 +0100 Subject: [PATCH 4/7] SKIP ME --- .github/workflows/prepare-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml index bc57aa9..707720f 100644 --- a/.github/workflows/prepare-release.yml +++ b/.github/workflows/prepare-release.yml @@ -13,7 +13,7 @@ jobs: prepare-release: name: 🚚 Prepare new release runs-on: ubuntu-latest - if: github.ref == 'refs/heads/main' && contains(fromJson('["major","minor"]'), github.event.inputs.versionIncrement) + if: contains(fromJson('["major","minor"]'), github.event.inputs.versionIncrement) steps: - name: 🛒 Checkout repository uses: actions/checkout@v2 From 398e45fc2ca6f9dd28a1ec82590bf220983c0007 Mon Sep 17 00:00:00 2001 From: Steven Giesel Date: Wed, 9 Nov 2022 07:42:15 +0100 Subject: [PATCH 5/7] TO BE SQUASHED --- .github/workflows/verification.yml | 58 ++---------------------------- 1 file changed, 2 insertions(+), 56 deletions(-) diff --git a/.github/workflows/verification.yml b/.github/workflows/verification.yml index cf1e81d..959f33f 100644 --- a/.github/workflows/verification.yml +++ b/.github/workflows/verification.yml @@ -57,59 +57,5 @@ jobs: with: setAllVars: true - - name: 🍥 Replace tokens in files - uses: cschleiden/replace-tokens@v1 - with: - files: '["docs/site/*.md", "docs/**/*.md", "docs/**/*.tmpl.partial", "*.csproj", "**/*.csproj"]' - - - name: 🧪 Run unit tests (async) - run: | - dotnet test --filter Category!=sync -c release --blame-hang-timeout 15s --blame-hang-dump-type full --blame-crash-dump-type full - - name: 🧪 Run unit tests (sync) - run: | - dotnet test --filter Category!=async -c release --blame-hang-timeout 15s --blame-hang-dump-type full --blame-crash-dump-type full - - name: 📛 Upload hang- and crash-dumps on test failure - if: failure() - uses: actions/upload-artifact@v3 - with: - if-no-files-found: ignore - name: test-dumps - path: | - **/*hangdump.dmp - **/*crashdump.dmp - - - name: 🗳️ Pack library - run: | - dotnet pack -c release -o ${{ github.workspace }}/packages -p:ContinuousIntegrationBuild=true - dotnet pack src/bunit/ -c release -o ${{ github.workspace }}/packages -p:ContinuousIntegrationBuild=true - dotnet pack src/bunit.template/ -c release -o ${{ github.workspace }}/packages -p:ContinuousIntegrationBuild=true - - - name: ✳ Install bUnit template - run: | - dotnet new --install bunit.template::${NBGV_NuGetPackageVersion} --nuget-source ${{ github.workspace }}/packages - - - name: ✔ Verify xUnit template - run: | - dotnet new bunit --no-restore -o ${{ github.workspace }}/TemplateTestXunit - echo '' >> ${{ github.workspace }}/TemplateTestXunit/Directory.Build.props - dotnet restore ${{ github.workspace }}/TemplateTestXunit --source https://api.nuget.org/v3/index.json --source ${{ github.workspace }}/packages - dotnet test ${{ github.workspace }}/TemplateTestXunit - - - name: ✔ Verify NUnit template - run: | - dotnet new bunit --framework nunit --no-restore -o ${{ github.workspace }}/TemplateTestNunit - echo '' >> ${{ github.workspace }}/TemplateTestNunit/Directory.Build.props - dotnet restore ${{ github.workspace }}/TemplateTestNunit --source https://api.nuget.org/v3/index.json --source ${{ github.workspace }}/packages - dotnet test ${{ github.workspace }}/TemplateTestNunit - - - name: ✔ Verify MSTest template - run: | - dotnet new bunit --framework mstest --no-restore -o ${{ github.workspace }}/TemplateTestMstest - echo '' >> ${{ github.workspace }}/TemplateTestMstest/Directory.Build.props - dotnet restore ${{ github.workspace }}/TemplateTestMstest --source https://api.nuget.org/v3/index.json --source ${{ github.workspace }}/packages - dotnet test ${{ github.workspace }}/TemplateTestMstest - - # DocFx only works well on Windows currently - - name: 📄 Build documentation - if: matrix.os == 'windows-latest' - run: dotnet build docs/site/ + - name: 🛠️ Building library in release mode + run: dotnet build \ No newline at end of file From 041457a13aa8b51d63455f9be2b7fc07831a6580 Mon Sep 17 00:00:00 2001 From: Steven Giesel Date: Wed, 9 Nov 2022 07:46:07 +0100 Subject: [PATCH 6/7] Added text --- .DS_Store | Bin 0 -> 6148 bytes CHANGELOG.md | 2 ++ 2 files changed, 2 insertions(+) create mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..baa9054a223e43f8427de752d8edd0155ad2c495 GIT binary patch literal 6148 zcmeHK%Wl&^6upxe;*9P83sw(XnbddqIKhD$u8NO_WSNxoOM$- z9Vcyf^p;<}isR6m`>yvo7-YTb&QTntZV(Mdf)MxvguHtbM1GvL<8kCCg4>lHcG)iX zs=JfPeq*oZ92_*JHD~f@zfp4@+&cll+{v;G4hILTbmcluFhNEe4 z)g47)91YRKSsT|11$Y|~#n5-4>BO_--$;dy=n1vx1wE!?dPXmSb-Ey5l&qA$5QQltdq?l0b-_-x2WRp<(HW`x)P|n;w89mf)Qxr75e3w zNVLYL=BmB9#$z-?GYS|5{*3~BeQ;1XHWkh!ilqaUI067IGz)_-{`vzQ-T-VWoJm9r zj7cg`QkgnpFm-ZZl8*kSil0f8bYkMp$fNGe)Cq;Dg9md&II*TgQyT@00*eY1S|1Xlvl~KSb@LwswtWLMn#v`e{b?M>wUhANIK;g#YW)cMjmD-Ml!?)sH6k+Id YxC3k|oJm9r%={4$GMLIJ@K+W11#~m Date: Wed, 9 Nov 2022 06:47:08 +0000 Subject: [PATCH 7/7] Set version to '2.11' --- version.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.json b/version.json index 9fdd2a0..320a9f6 100644 --- a/version.json +++ b/version.json @@ -1,6 +1,6 @@ { "$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json", - "version": "2.11-preview", + "version": "2.11", "assemblyVersion": { "precision": "revision" },