From 037e4bcf0d53734f32c8d65074eff7a462d41480 Mon Sep 17 00:00:00 2001 From: Tigger Kindel Date: Mon, 28 Aug 2023 06:56:45 -0600 Subject: [PATCH] Tweaked yml for gitversion --- .github/workflows/dotnet-core.yml | 20 +++++++++++++++++--- .github/workflows/publish.yml | 8 ++++++-- 2 files changed, 23 insertions(+), 5 deletions(-) diff --git a/.github/workflows/dotnet-core.yml b/.github/workflows/dotnet-core.yml index ff23467b7..e8e8e6daa 100644 --- a/.github/workflows/dotnet-core.yml +++ b/.github/workflows/dotnet-core.yml @@ -12,24 +12,38 @@ on: jobs: build: - runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - name: Install and calculate the new version with GitVersion + uses: gittools/actions/gitversion/setup@v0 + with: + versionSpec: '6.x' + includePrerelease: true + + - name: Determine Version + uses: gittools/actions/gitversion/execute@v0 + with: + useConfigFile: true + id: gitversion # step id used as reference for output values + - name: Setup .NET Core uses: actions/setup-dotnet@v3 with: dotnet-version: 7.0 + dotnet-quality: 'ga' - name: Install dependencies run: | dotnet restore - name: Build Debug - run: dotnet build --configuration Debug --no-restore - + run: | + dotnet-gitversion /updateprojectfiles + dotnet build --configuration Debug --no-restore + - name: Test run: | sed -i 's/"stopOnFail": false/"stopOnFail": true/g' UnitTests/xunit.runner.json diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 568302dda..0fcbb059e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -21,17 +21,21 @@ jobs: - name: Install and calculate the new version with GitVersion uses: gittools/actions/gitversion/setup@v0 with: - versionSpec: 5.x + versionSpec: '6.x' + includePrerelease: true - name: Determine Version uses: gittools/actions/gitversion/execute@v0 + with: + useConfigFile: true id: gitversion # step id used as reference for output values - name: Setup dotnet uses: actions/setup-dotnet@v3 with: dotnet-version: 7.0 - + dotnet-quality: 'ga' + - name: Install dependencies run: dotnet restore