|
@@ -12,24 +12,40 @@ on:
|
|
|
|
|
|
jobs:
|
|
|
build:
|
|
|
-
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
steps:
|
|
|
- uses: actions/checkout@v3
|
|
|
+ with:
|
|
|
+ fetch-depth: 0 #fetch-depth is needed for GitVersion
|
|
|
+
|
|
|
+ # - 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
|