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
15 changes: 14 additions & 1 deletion .github/workflows/swift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,27 @@ jobs:
run: |
sudo xcode-select -s "$(ls -d /Applications/Xcode_16*.app | sort -V | tail -1)"
xcodebuild -version
- name: Build with xcodebuild
- name: Install XcodeGen
run: brew install xcodegen
- name: Verify project.pbxproj is up to date
run: |
xcodegen generate
git diff --exit-code MarkdownViewer.xcodeproj/project.pbxproj
- name: Build (Release) with xcodebuild
run: |
xcodebuild build \
-project MarkdownViewer.xcodeproj \
-scheme MarkdownViewer \
-configuration Release \
-destination 'platform=macOS' \
CODE_SIGNING_ALLOWED=NO
- name: Test with xcodebuild
run: |
xcodebuild test \
-project MarkdownViewer.xcodeproj \
-scheme MarkdownViewer \
-destination 'platform=macOS' \
CODE_SIGNING_ALLOWED=NO

lint:
runs-on: macos-15
Expand Down
4 changes: 1 addition & 3 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@ included:
excluded:
- MarkdownViewer/mermaid.min.js

# 導入初期はwarning中心。ファイル分割リファクタ完了後に閾値を厳格化する
line_length:
warning: 160
ignores_comments: true
ignores_urls: true

file_length:
warning: 500
warning: 400

type_body_length:
warning: 350
Expand All @@ -32,4 +31,3 @@ force_try:

disabled_rules:
- todo
- trailing_whitespace # 既存コードに多数残存。リファクタPRで解消後に有効化
501 changes: 352 additions & 149 deletions MarkdownViewer.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

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

Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "2600"
LastUpgradeVersion = "1430"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES"
buildArchitectures = "Automatic">
runPostActionsOnFailure = "NO">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
Expand All @@ -15,7 +15,7 @@
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "A100000D000000000000001"
BlueprintIdentifier = "C67E8A6179C1E98775DBDA09"
BuildableName = "MarkdownViewer.app"
BlueprintName = "MarkdownViewer"
ReferencedContainer = "container:MarkdownViewer.xcodeproj">
Expand All @@ -28,10 +28,34 @@
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
onlyGenerateCoverageForSpecifiedTargets = "NO">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "C67E8A6179C1E98775DBDA09"
BuildableName = "MarkdownViewer.app"
BlueprintName = "MarkdownViewer"
ReferencedContainer = "container:MarkdownViewer.xcodeproj">
</BuildableReference>
</MacroExpansion>
<Testables>
<TestableReference
skipped = "NO"
parallelizable = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "DC766F055D01A804FED92AC0"
BuildableName = "MarkdownViewerTests.xctest"
BlueprintName = "MarkdownViewerTests"
ReferencedContainer = "container:MarkdownViewer.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<CommandLineArguments>
</CommandLineArguments>
</TestAction>
<LaunchAction
buildConfiguration = "Release"
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
Expand All @@ -44,17 +68,13 @@
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "A100000D000000000000001"
BlueprintIdentifier = "C67E8A6179C1E98775DBDA09"
BuildableName = "MarkdownViewer.app"
BlueprintName = "MarkdownViewer"
ReferencedContainer = "container:MarkdownViewer.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<CommandLineArguments>
<CommandLineArgument
argument = "/Users/jun.morimoto.a/git/MarkdownViewer/test.md"
isEnabled = "YES">
</CommandLineArgument>
</CommandLineArguments>
</LaunchAction>
<ProfileAction
Expand All @@ -67,12 +87,14 @@
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "A100000D000000000000001"
BlueprintIdentifier = "C67E8A6179C1E98775DBDA09"
BuildableName = "MarkdownViewer.app"
BlueprintName = "MarkdownViewer"
ReferencedContainer = "container:MarkdownViewer.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<CommandLineArguments>
</CommandLineArguments>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
Expand Down
Loading
Loading