Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit 7896787

Browse files
committed
Test in release configuration.
Remove @testable attribute in SwiftDoc import for release mode testing.
1 parent 7f9680e commit 7896787

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- name: Checkout
1111
uses: actions/checkout@v1
1212
- name: Build and Test
13-
run: swift test
13+
run: swift test -c release
1414
env:
1515
DEVELOPER_DIR: /Applications/Xcode_11.4.app/Contents/Developer
1616

@@ -28,4 +28,4 @@ jobs:
2828
apt-get update
2929
apt-get install -y libxml2-dev
3030
- name: Build and Test
31-
run: swift test --enable-test-discovery
31+
run: swift test -c release --enable-test-discovery

Tests/SwiftDocTests/SourceFileTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import XCTest
22

3-
@testable import SwiftDoc
3+
import SwiftDoc
44
import SwiftSemantics
55
import struct SwiftSemantics.Protocol
66
import SwiftSyntax

0 commit comments

Comments
 (0)