Skip to content

Commit

Permalink
lets go danger
Browse files Browse the repository at this point in the history
  • Loading branch information
JeroenBakker-wbd committed Aug 29, 2023
1 parent e3f7b03 commit b1b6b60
Show file tree
Hide file tree
Showing 6 changed files with 137 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,14 @@ jobs:
-Dsonar.c.file.suffixes=-
-Dsonar.cpp.file.suffixes=-
-Dsonar.objc.file.suffixes=-
build:
runs-on: ubuntu-latest
name: "Run Danger"
steps:
- uses: actions/checkout@v1
- name: Danger
uses: danger/[email protected]
with:
args: --failOnErrors --no-publish-check
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6 changes: 6 additions & 0 deletions Dangerfile.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import DangerSwiftCoverage

Coverage.xcodeBuildCoverage(
.derivedDataFolder("Build"),
minimumCoverage: 80
)
2 changes: 1 addition & 1 deletion Domain/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ let package = Package(
.target(
name: "Domain",
dependencies: [
.product(name: "Factory", package: "Factory")
.product(name: "Factory", package: "Factory"),
]),
.testTarget(
name: "DomainTests",
Expand Down
1 change: 1 addition & 0 deletions FlickrFinder/DangerProxy.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import Foundation
95 changes: 95 additions & 0 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
{
"pins" : [
{
"identity" : "danger-swift-coverage",
"kind" : "remoteSourceControl",
"location" : "https://github.com/f-meloni/danger-swift-coverage",
"state" : {
"revision" : "104ded872b6e1af1def04b897bc3a29fe04865ba",
"version" : "0.3.0"
}
},
{
"identity" : "files",
"kind" : "remoteSourceControl",
"location" : "https://github.com/JohnSundell/Files.git",
"state" : {
"revision" : "a84615f4558151fab52ac38df697ce2442991f93",
"version" : "2.3.0"
}
},
{
"identity" : "logger",
"kind" : "remoteSourceControl",
"location" : "https://github.com/shibapm/Logger",
"state" : {
"revision" : "53c3ecca5abe8cf46697e33901ee774236d94cce",
"version" : "0.2.3"
}
},
{
"identity" : "marathon",
"kind" : "remoteSourceControl",
"location" : "https://github.com/JohnSundell/Marathon",
"state" : {
"revision" : "35b672e05ac411fb104e462fbfd6541f995abc17",
"version" : "3.3.0"
}
},
{
"identity" : "octokit.swift",
"kind" : "remoteSourceControl",
"location" : "https://github.com/nerdishbynature/octokit.swift",
"state" : {
"revision" : "f762f1566f7cd0e683b9329f169c28ab6ef993cc",
"version" : "0.12.0"
}
},
{
"identity" : "releases",
"kind" : "remoteSourceControl",
"location" : "https://github.com/JohnSundell/Releases.git",
"state" : {
"revision" : "ea62f33a429185b0ed21344c2355862c5bc4fcce",
"version" : "4.0.0"
}
},
{
"identity" : "requestkit",
"kind" : "remoteSourceControl",
"location" : "https://github.com/nerdishbynature/RequestKit.git",
"state" : {
"revision" : "8b0258ea2a4345cbcac90509b764faacea12efb0",
"version" : "3.2.1"
}
},
{
"identity" : "require",
"kind" : "remoteSourceControl",
"location" : "https://github.com/JohnSundell/Require.git",
"state" : {
"revision" : "7cfbd0d8a2dede0e01f6f0d8ab2c7acef1df112e",
"version" : "2.0.1"
}
},
{
"identity" : "shellout",
"kind" : "remoteSourceControl",
"location" : "https://github.com/JohnSundell/ShellOut",
"state" : {
"revision" : "e1577acf2b6e90086d01a6d5e2b8efdaae033568",
"version" : "2.3.0"
}
},
{
"identity" : "swift",
"kind" : "remoteSourceControl",
"location" : "https://github.com/danger/swift.git",
"state" : {
"revision" : "33d35bf94f54155be505ffecfca745e4cc1cd0cc",
"version" : "1.6.5"
}
}
],
"version" : 2
}
23 changes: 23 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// swift-tools-version:5.7
import PackageDescription

let package = Package(
name: "FlickrFinder-PRLinter",
defaultLocalization: "en",
products: [
.library(name: "DangerDeps", type: .dynamic, targets: ["FlickrFinder-PRLinter"])
],
dependencies: [
.package(url: "https://github.com/f-meloni/danger-swift-coverage", from: "0.1.0") // dev
],
targets: [
.target(
name: "FlickrFinder-PRLinter",
dependencies: [
.product(name: "DangerSwiftCoverage", package: "danger-swift-coverage")
],
path: "FlickrFinder",
sources: ["DangerProxy.swift"]
)
]
)

0 comments on commit b1b6b60

Please sign in to comment.