Skip to content

Commit dd76668

Browse files
committed
Build with Bazel
1 parent 48c201a commit dd76668

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

.github/workflows/test.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,19 @@ jobs:
8383
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
8484
with:
8585
persist-credentials: false
86-
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
87-
with:
88-
key: windows-${{ matrix.windows-version }}-spm-${{ matrix.swift-version }}-${{ hashFiles('Package.resolved', 'Package.swift') }}
89-
restore-keys: windows-${{ matrix.windows-version }}-spm-${{ matrix.swift-version }}-
90-
path: .build
91-
- name: Build all targets
92-
run: swift build --build-tests --vv
86+
- name: Apply patch
87+
run: |
88+
git apply --ignore-whitespace .bcr/patches/no-warnings-as-errors.patch
89+
git update-index --assume-unchanged BUILD
90+
- name: Build SwiftLint
91+
run: bazel build //:swiftlint
9392
- name: Run selected tests
94-
run: swift test --vv --skip IntegrationTests --skip FileSystemAccessTests
93+
run: >
94+
bazel test --test_env=SKIP_INTEGRATION_TESTS=true --test_output=errors
95+
//Tests:BuiltInRulesTests
96+
//Tests:CoreTests
97+
//Tests:ExtraRulesTests
98+
//Tests:FrameworkTests
99+
//Tests:GeneratedTests
100+
//Tests:MacrosTests
95101
# To be extended with test execution and linting ...

0 commit comments

Comments
 (0)