Skip to content

Commit

Permalink
Add Periphery (#10)
Browse files Browse the repository at this point in the history
# Add Periphery

## ⚙️ Release Notes 
- Add Periphery checks.


### Code of Conduct & Contributing Guidelines 

By submitting creating this pull request, you agree to follow our [Code
of
Conduct](https://github.com/StanfordBDHG/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/StanfordBDHG/.github/blob/main/CONTRIBUTING.md):
- [x] I agree to follow the [Code of
Conduct](https://github.com/StanfordBDHG/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/StanfordBDHG/.github/blob/main/CONTRIBUTING.md).
  • Loading branch information
PSchmiedmayer authored Jun 7, 2024
1 parent ae5258a commit 4a6e99a
Show file tree
Hide file tree
Showing 10 changed files with 161 additions and 19 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ jobs:
swiftlint:
name: SwiftLint
uses: StanfordBDHG/.github/.github/workflows/swiftlint.yml@v2
periphery:
name: Periphery
uses: StanfordBDHG/.github/.github/workflows/periphery.yml@v2
permissions:
contents: read
codeql:
name: CodeQL
uses: StanfordBDHG/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
Expand Down
16 changes: 16 additions & 0 deletions .periphery.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#
# This source file is part of the StanfordBDHG Template Application project
#
# SPDX-FileCopyrightText: 2023 Stanford University
#
# SPDX-License-Identifier: MIT
#

project: TemplateApplication.xcodeproj
schemes:
- TemplateApplication
targets:
- TemplateApplication
- TemplateApplicationTests
- TemplateApplicationUITests
- TemplateWatchApplication
6 changes: 6 additions & 0 deletions .reuse/dep5
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/

Files: TemplateApplication.xcodeproj/*
Copyright: 2024 Stanford University and the project authors (see CONTRIBUTORS.md)
License: MIT
Comment: All Xcode Project Configuration Files are part of the StanfordBDHG Template Application project.
27 changes: 27 additions & 0 deletions TemplateApplication.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@
buildRules = (
);
dependencies = (
2F310B062C13C87C003761D5 /* PBXTargetDependency */,
2F7025D02A969ACA007C36EF /* PBXTargetDependency */,
);
name = TemplateApplication;
Expand Down Expand Up @@ -273,6 +274,9 @@
Base,
);
mainGroup = 371BAA5129EFAB1900011A7C;
packageReferences = (
2F310B042C13C873003761D5 /* XCRemoteSwiftPackageReference "SwiftLint" */,
);
productRefGroup = 371BAA5B29EFAB1900011A7C /* Products */;
projectDirPath = "";
projectRoot = "";
Expand Down Expand Up @@ -356,6 +360,10 @@
/* End PBXSourcesBuildPhase section */

/* Begin PBXTargetDependency section */
2F310B062C13C87C003761D5 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
productRef = 2F310B052C13C87C003761D5 /* SwiftLintBuildToolPlugin */;
};
2F7025D02A969ACA007C36EF /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
platformFilter = ios;
Expand Down Expand Up @@ -796,6 +804,25 @@
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */

/* Begin XCRemoteSwiftPackageReference section */
2F310B042C13C873003761D5 /* XCRemoteSwiftPackageReference "SwiftLint" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/realm/SwiftLint.git";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 0.55.1;
};
};
/* End XCRemoteSwiftPackageReference section */

/* Begin XCSwiftPackageProductDependency section */
2F310B052C13C87C003761D5 /* SwiftLintBuildToolPlugin */ = {
isa = XCSwiftPackageProductDependency;
package = 2F310B042C13C873003761D5 /* XCRemoteSwiftPackageReference "SwiftLint" */;
productName = "plugin:SwiftLintBuildToolPlugin";
};
/* End XCSwiftPackageProductDependency section */
};
rootObject = 371BAA5229EFAB1900011A7C /* Project object */;
}
6 changes: 0 additions & 6 deletions TemplateApplication.xcodeproj/project.pbxproj.license

This file was deleted.

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

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
{
"originHash" : "7a2c9b4bb42c2221bb642dfc27b6e8a478d63cd04f52d3e2819330e24f9fb63f",
"pins" : [
{
"identity" : "collectionconcurrencykit",
"kind" : "remoteSourceControl",
"location" : "https://github.com/JohnSundell/CollectionConcurrencyKit.git",
"state" : {
"revision" : "b4f23e24b5a1bff301efc5e70871083ca029ff95",
"version" : "0.2.0"
}
},
{
"identity" : "cryptoswift",
"kind" : "remoteSourceControl",
"location" : "https://github.com/krzyzanowskim/CryptoSwift.git",
"state" : {
"revision" : "c9c3df6ab812de32bae61fc0cd1bf6d45170ebf0",
"version" : "1.8.2"
}
},
{
"identity" : "sourcekitten",
"kind" : "remoteSourceControl",
"location" : "https://github.com/jpsim/SourceKitten.git",
"state" : {
"revision" : "fd4df99170f5e9d7cf9aa8312aa8506e0e7a44e7",
"version" : "0.35.0"
}
},
{
"identity" : "swift-argument-parser",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-argument-parser.git",
"state" : {
"revision" : "0fbc8848e389af3bb55c182bc19ca9d5dc2f255b",
"version" : "1.4.0"
}
},
{
"identity" : "swift-syntax",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-syntax.git",
"state" : {
"revision" : "303e5c5c36d6a558407d364878df131c3546fad8",
"version" : "510.0.2"
}
},
{
"identity" : "swiftlint",
"kind" : "remoteSourceControl",
"location" : "https://github.com/realm/SwiftLint.git",
"state" : {
"revision" : "b515723b16eba33f15c4677ee65f3fef2ce8c255",
"version" : "0.55.1"
}
},
{
"identity" : "swiftytexttable",
"kind" : "remoteSourceControl",
"location" : "https://github.com/scottrhoyt/SwiftyTextTable.git",
"state" : {
"revision" : "c6df6cf533d120716bff38f8ff9885e1ce2a4ac3",
"version" : "0.9.0"
}
},
{
"identity" : "swxmlhash",
"kind" : "remoteSourceControl",
"location" : "https://github.com/drmohundro/SWXMLHash.git",
"state" : {
"revision" : "a853604c9e9a83ad9954c7e3d2a565273982471f",
"version" : "7.0.2"
}
},
{
"identity" : "yams",
"kind" : "remoteSourceControl",
"location" : "https://github.com/jpsim/Yams.git",
"state" : {
"revision" : "9234124cff5e22e178988c18d8b95a8ae8007f76",
"version" : "5.1.2"
}
}
],
"version" : 3
}

This file was deleted.

14 changes: 13 additions & 1 deletion fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ platform :ios do
run_tests(
skip_build: true,
derived_data_path: ".derivedData",
xcargs: [
"-skipPackagePluginValidation",
"-skipMacroValidation"
],
code_coverage: true,
devices: options[:devices],
force_quit_simulator: true,
Expand All @@ -78,14 +82,22 @@ platform :ios do
build_app(
skip_archive: true,
skip_codesigning: true,
derived_data_path: ".derivedData"
derived_data_path: ".derivedData",
xcargs: [
"-skipPackagePluginValidation",
"-skipMacroValidation"
]
)
end

desc "Build app"
lane :build do
build_app(
derived_data_path: ".derivedData",
xcargs: [
"-skipPackagePluginValidation",
"-skipMacroValidation"
],
destination: "generic/platform=iOS",
output_directory: ".build",
archive_path: ".build/TemplateApplication.xcarchive",
Expand Down

0 comments on commit 4a6e99a

Please sign in to comment.