From 0da6c0ed39b3590d525a4a0e2304f26cb1a5e48b Mon Sep 17 00:00:00 2001 From: andreas hilti Date: Mon, 20 May 2024 10:02:24 +0200 Subject: [PATCH 1/3] Fix build Compare https://github.com/SwissLife-OSS/snapshooter/issues/196 Signed-off-by: andreas hilti --- .github/workflows/dotnetcore.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml index 4c00063..5a2ace1 100644 --- a/.github/workflows/dotnetcore.yml +++ b/.github/workflows/dotnetcore.yml @@ -49,7 +49,9 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, windows-latest, macos-latest] +# os: [ubuntu-latest, windows-latest, macos-latest] +# macos currently disabled. see issue https://github.com/SwissLife-OSS/snapshooter/issues/196. + os: [ubuntu-latest, windows-latest] timeout-minutes: 30 steps: @@ -58,6 +60,11 @@ jobs: with: dotnet-version: '6.0' + - name: SnapshooterHotfixSymlinkLinux + if: matrix.os == 'ubuntu-latest' + run: sudo ln -s "$GITHUB_WORKSPACE" /_ + shell: bash + - name: Tests run: | dotnet restore From a8bf0b108b3230a394541b1fa8e7cbbabdce6ed9 Mon Sep 17 00:00:00 2001 From: andreas hilti Date: Mon, 20 May 2024 10:13:16 +0200 Subject: [PATCH 2/3] activate SNAPSHOOTER_STRICT_MODE Signed-off-by: andreas hilti --- .github/workflows/dotnetcore.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml index 5a2ace1..983e540 100644 --- a/.github/workflows/dotnetcore.yml +++ b/.github/workflows/dotnetcore.yml @@ -3,6 +3,9 @@ name: .NET Core CI on: [pull_request, workflow_dispatch] +env: + SNAPSHOOTER_STRICT_MODE: true + jobs: # Fail if there are build warnings # @@ -64,6 +67,10 @@ jobs: if: matrix.os == 'ubuntu-latest' run: sudo ln -s "$GITHUB_WORKSPACE" /_ shell: bash + - name: SnapshooterHotfixSymlinkWindows + if: matrix.os == 'windows-latest' + run: New-Item -ItemType SymbolicLink -Path "/_" -Target "$env:GITHUB_WORKSPACE" + shell: pwsh - name: Tests run: | From 201415e861196be14963c6b927bf2578b18506e5 Mon Sep 17 00:00:00 2001 From: andreas hilti Date: Mon, 20 May 2024 10:26:17 +0200 Subject: [PATCH 3/3] Fix release Signed-off-by: andreas hilti --- .github/workflows/release.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7ca1605..ae47970 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,6 +22,9 @@ name: Release on: workflow_dispatch +env: + SNAPSHOOTER_STRICT_MODE: true + jobs: release: name: Release @@ -35,6 +38,9 @@ jobs: - uses: actions/setup-dotnet@v3.0.2 with: dotnet-version: '6.0' + - name: SnapshooterHotfixSymlinkLinux + run: sudo ln -s "$GITHUB_WORKSPACE" /_ + shell: bash # The tests should have already been run during the PR workflow, so this is really just a sanity check - name: Tests run: dotnet test