Skip to content

Commit 5351ee8

Browse files
committed
Test that all.css contains a valid CSS selector
1 parent 5a68c76 commit 5351ee8

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
restore-keys: |
2727
${{ runner.os }}-spm-xcode-${{ matrix.xcode }}-
2828
- name: Build and Test
29-
run: swift test -c release
29+
run: ./test.sh
3030
env:
3131
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
3232

@@ -54,4 +54,4 @@ jobs:
5454
apt-get update
5555
apt-get install -y libxml2-dev
5656
- name: Build and Test
57-
run: swift test -c release --enable-test-discovery
57+
run: ./test.sh

test.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
3+
set -eux
4+
5+
swift test -c release --enable-test-discovery
6+
./.build/release/swift-doc generate --module-name SwiftDoc --format html Sources
7+
grep ':root' ./.build/documentation/all.css || exit 1

0 commit comments

Comments
 (0)