Skip to content

Commit 4ff2d09

Browse files
authored
Merge pull request #863 from wti/fix-CI-isolating-SiteTests
In CI, run SiteTests in isolation as recommended
2 parents 58b5e1c + 004b89e commit 4ff2d09

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/swift.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,7 @@ jobs:
1818
- uses: actions/checkout@v4
1919
- name: Build
2020
run: swift build
21-
- name: Run tests
22-
run: swift test -q
21+
- name: Run tests (except SiteTests)
22+
run: swift test -q --skip SiteTests
23+
- name: Run tests (SiteTests only)
24+
run: swift test -q --filter SiteTests

Tests/IgniteTesting/Publishing/Site.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ private struct TestPackage {
153153
.appending(path: "TestWebsitePackage")
154154
buildDirectoryURL = packageBaseURL.appending(path: "Build")
155155
contentDirectoryURL = packageBaseURL.appending(path: "Content")
156+
try? FileManager.default.createDirectory(
157+
at: contentDirectoryURL,
158+
withIntermediateDirectories: false)
156159
}
157160

158161
func checkIndexFileExists() -> Bool {

0 commit comments

Comments
 (0)