Skip to content

Commit e0debda

Browse files
committed
Validate with swift-mod on CI
1 parent 478cc81 commit e0debda

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ jobs:
1515
- name: Show environments
1616
run: |
1717
swift --version
18+
- name: Validate mod
19+
if: matrix.swift_version == '5.1'
20+
run: make mod-check
1821
- name: Swift test
1922
run: |
2023
swift build

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,8 @@ test-linux:
1717
mod:
1818
swift run -c release --package-path ./Packages swift-mod
1919

20+
mod-check:
21+
swift run -c release --package-path ./Packages swift-mod --check
22+
2023
generate-linuxmain:
2124
swift test --generate-linuxmain

Packages/Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ import PackageDescription
55
let package = Package(
66
name: "Modules",
77
dependencies: [
8-
.package(url: "https://github.com/ra1028/swift-mod.git", .exact("0.0.1")),
8+
.package(url: "https://github.com/ra1028/swift-mod.git", .exact("0.0.1"))
99
]
1010
)

0 commit comments

Comments
 (0)