Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,7 @@ jobs:
- uses: swift-actions/setup-swift@v2
with:
swift-version: "5.10"
- name: Prepare test build
run: swift build
- name: Run tests
run: make test
run: ./Tests/integration_tests.sh .build/debug/progressline
1 change: 1 addition & 0 deletions .sake.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
case_converting_strategy: toSnakeCase
102 changes: 0 additions & 102 deletions Makefile

This file was deleted.

9 changes: 9 additions & 0 deletions SakeApp/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.DS_Store
/.build
/.index-build
/Packages
xcuserdata/
DerivedData/
.swiftpm/configuration/registries.json
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
.netrc
29 changes: 29 additions & 0 deletions SakeApp/BrewCommands.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import Sake
import SwiftShell

@CommandGroup
struct BrewCommands {
static var ensureGhInstalled: Command {
Command(
description: "Ensure gh is installed",
skipIf: { _ in
run("which", "gh").succeeded
},
run: { _ in
try runAndPrint("brew", "install", "gh")
}
)
}

static var ensureGitCliffInstalled: Command {
Command(
description: "Ensure git-cliff is installed",
skipIf: { _ in
run("which", "git-cliff").succeeded
},
run: { _ in
try runAndPrint("brew", "install", "git-cliff")
}
)
}
}
51 changes: 51 additions & 0 deletions SakeApp/Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 29 additions & 0 deletions SakeApp/Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// swift-tools-version: 5.10
// The swift-tools-version declares the minimum version of Swift required to build this package.

import CompilerPluginSupport
import PackageDescription

let package = Package(
name: "SakeApp",
platforms: [.macOS(.v10_15)], // Required by SwiftSyntax for the macro feature in Sake
products: [
.executable(name: "SakeApp", targets: ["SakeApp"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.2.0"),
.package(url: "https://github.com/kattouf/Sake", from: "0.1.0"),
.package(url: "https://github.com/kareman/SwiftShell", from: "5.1.0"),
],
targets: [
.executableTarget(
name: "SakeApp",
dependencies: [
.product(name: "ArgumentParser", package: "swift-argument-parser"),
"Sake",
"SwiftShell",
],
path: "."
),
]
)
Loading