diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a7b3e3347..6306b873b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,7 +9,7 @@ env: swift_package_resolve: swift package resolve swift_build: swift build swift_test: swift test - periphery_scan: ./.build/debug/periphery scan --quiet --clean-build + periphery_scan: ./.build/debug/periphery scan --quiet --clean-build --strict cache_version: 1 jobs: lint: @@ -28,7 +28,7 @@ jobs: - name: Check generated rules run: mise r gen-bazel-rules && git diff --quiet --exit-code - name: Scan - run: bazel run //:periphery -- scan --bazel --quiet --strict --baseline bazel/internal/bazel_baseline.json + run: bazel run //:periphery -- scan --bazel --quiet --strict --baseline baselines/bazel.json macOS: strategy: fail-fast: false @@ -70,7 +70,7 @@ jobs: - name: Build run: ${{ env.swift_build }} - name: Scan - run: ${{ env.periphery_scan }} --strict + run: ${{ env.periphery_scan }} - name: Test run: ${{ env.swift_test }} linux: @@ -111,6 +111,6 @@ jobs: - name: Build run: ${{ env.swift_build }} - name: Scan - run: ${{ env.periphery_scan }} + run: ${{ env.periphery_scan }} --baseline baselines/linux.json - name: Test run: ${{ env.swift_test }} diff --git a/bazel/internal/bazel_baseline.json b/baselines/bazel.json similarity index 100% rename from bazel/internal/bazel_baseline.json rename to baselines/bazel.json diff --git a/baselines/linux.json b/baselines/linux.json new file mode 100644 index 000000000..65cd981bf --- /dev/null +++ b/baselines/linux.json @@ -0,0 +1 @@ +{"v1":{"usrs":["import-Configuration-Sources\/ProjectDrivers\/XcodeProjectDriver.swift:2:5","import-Indexer-Sources\/ProjectDrivers\/XcodeProjectDriver.swift:4:5","import-Logger-Sources\/ProjectDrivers\/XcodeProjectDriver.swift:5:5","import-Shared-Sources\/ProjectDrivers\/XcodeProjectDriver.swift:6:5","import-SourceGraph-Sources\/ProjectDrivers\/XcodeProjectDriver.swift:7:5","import-TestShared-Tests\/PeripheryTests\/ObjcAccessibleRetentionTest.swift:2:1","import-TestShared-Tests\/PeripheryTests\/ObjcAnnotatedRetentionTest.swift:2:1","s:11SourceGraph15ProjectFileKindO10extensionsSaySSGvp","s:6Shared14SetupSelectionO","s:6Shared17SetupGuideHelpersC6select8multiple8allowAllAA0B9SelectionOSaySSG_SbtF","s:SS10ExtensionsE4djb2Sivp","s:SS10ExtensionsE7djb2HexSSvp"]}} \ No newline at end of file