Skip to content

Commit 02630bb

Browse files
committed
ci: Enable a subset of the unit tests
The smoke tests need a registry as a test fixture. We don't yet have that but until we do we can still run the other tests. This will ensure that the code builds and some of the functionality is exercised for each pull request.
1 parent 2bcdfff commit 02630bb

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/pull_request.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,16 @@ jobs:
1414
license_header_check_project_name: "SwiftContainerPlugin"
1515
shell_check_container_image: "swift:6.0-noble"
1616

17+
unit-tests:
18+
name: Unit tests
19+
uses: apple/swift-nio/.github/workflows/unit_tests.yml@main
20+
with:
21+
linux_5_8_enabled: false
22+
linux_5_9_enabled: false
23+
linux_5_10_enabled: false
24+
linux_nightly_6_0_arguments_override: "--filter 'AuthTests|ReferenceTests'"
25+
linux_nightly_main_arguments_override: "--filter 'AuthTests|ReferenceTests'"
26+
1727
swift-6-language-mode:
1828
name: Swift 6 Language Mode
1929
uses: apple/swift-nio/.github/workflows/swift_6_language_mode.yml@main

Tests/ContainerRegistryTests/ImageReferenceTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ struct ReferenceTestCase {
2727
}
2828

2929
class ReferenceTests: XCTestCase {
30-
var tests = [
30+
let tests = [
3131
// A reference which does not contain a '/' is always interpreted as a repository name
3232
// in the default registry.
3333
ReferenceTestCase(

0 commit comments

Comments
 (0)