Skip to content

Commit a27d923

Browse files
authored
activate snapshooter_strict_mode (CycloneDX#286)
CI/CD: Fix wrong snapshooter path. Snapshooter was incorrectly searching for snapshots under /_/ on all operating systems. This was resolved on Linux and Windows by creating a symlink to /_/ or [Drive]:/_/. However, macOS does not permit this symlink, so I have decided to skip tests on macOS for now and prioritize other issues. --- Signed-off-by: Michael Tsfoni <[email protected]>
1 parent 1e3886b commit a27d923

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/dotnetcore.yml

+14-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: .NET Core CI
33

44
on: [pull_request, workflow_dispatch]
55

6+
env:
7+
SNAPSHOOTER_STRICT_MODE: true
8+
69
jobs:
710
# Fail if there are build warnings
811
#
@@ -30,11 +33,21 @@ jobs:
3033
strategy:
3134
fail-fast: false
3235
matrix:
33-
os: [ubuntu-latest, windows-latest, macos-latest]
36+
# os: [ubuntu-latest, windows-latest, macos-latest]
37+
# macos currently disabled. see issue #285 for more info.
38+
os: [ubuntu-latest, windows-latest]
3439
timeout-minutes: 30
3540

3641
steps:
3742
- uses: actions/checkout@v3
43+
- name: SnapshooterHotfixSymlinkLinux
44+
if: matrix.os == 'ubuntu-latest'
45+
run: sudo ln -s "$GITHUB_WORKSPACE" /_
46+
shell: bash
47+
- name: SnapshooterHotfixSymlinkWindows
48+
if: matrix.os == 'windows-latest'
49+
run: New-Item -ItemType SymbolicLink -Path "/_" -Target "$env:GITHUB_WORKSPACE"
50+
shell: pwsh
3851
- uses: actions/setup-dotnet@v3
3952
with:
4053
dotnet-version: '6.0.x'

0 commit comments

Comments
 (0)