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

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
76 changes: 76 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: CI

on:
push:
branches: [master, main, "feature/**", "release/**"]
pull_request:
branches: [master, main]

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

jobs:
build-test:
name: Build & Test (iOS Simulator)
runs-on: macos-14
steps:
- uses: actions/checkout@v4

- name: Select Xcode
run: sudo xcode-select -s /Applications/Xcode_15.4.app

- name: Show toolchain
run: |
xcodebuild -version
swift --version

- name: Resolve packages
run: swift package resolve

- name: Build (iOS Simulator)
run: |
xcodebuild build \
-scheme XCoordinator \
-destination 'generic/platform=iOS Simulator' \
-skipPackagePluginValidation \
CODE_SIGNING_ALLOWED=NO

- name: Test
run: |
xcodebuild test \
-scheme XCoordinator \
-destination 'platform=iOS Simulator,name=iPhone 15' \
-skipPackagePluginValidation \
CODE_SIGNING_ALLOWED=NO

pod-lint:
name: CocoaPods lint
runs-on: macos-14
steps:
- uses: actions/checkout@v4

- name: Select Xcode
run: sudo xcode-select -s /Applications/Xcode_15.4.app

- name: Lint podspec
run: pod lib lint --allow-warnings --fail-fast

docs:
name: DocC build
runs-on: macos-14
steps:
- uses: actions/checkout@v4

- name: Select Xcode
run: sudo xcode-select -s /Applications/Xcode_15.4.app

- name: Build documentation
run: |
swift package \
--allow-writing-to-directory ./Documentation \
generate-documentation \
--target XCoordinator \
--output-path ./Documentation \
--transform-for-static-hosting \
--warnings-as-errors
51 changes: 51 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Publish documentation

on:
push:
tags: ["*"]
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: pages
cancel-in-progress: true

jobs:
build:
runs-on: macos-14
steps:
- uses: actions/checkout@v4

- name: Select Xcode
run: sudo xcode-select -s /Applications/Xcode_15.4.app

- name: Build documentation
run: |
swift package \
--allow-writing-to-directory ./Documentation \
generate-documentation \
--target XCoordinator \
--output-path ./Documentation \
--transform-for-static-hosting \
--hosting-base-path XCoordinator \
--warnings-as-errors

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./Documentation

deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
20 changes: 12 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Mac OS X
*.DS_Store
# macOS
**/.DS_Store

# Xcode
.build
.build/
*.pbxuser
*.mode1v3
*.mode2v3
Expand All @@ -12,17 +12,21 @@ project.xcworkspace/
xcuserdata/
Pods/*.xcodeproj/xcuserdata/

# Swift Package Manager
/.swiftpm/xcode/xcuserdata/
/.swiftpm/xcode/package.xcworkspace/xcuserdata/
/.swiftpm/configuration/
Package.resolved

# Generated files
*.o
*.pyc

# Docs
docs/docsets/XCoordinator.tgz
docs/undocumented.json
# Documentation outputs
/Documentation/
*.doccarchive/

# Backup files
*~.nib
\#*#
.#*

.swiftpm
8 changes: 0 additions & 8 deletions .jazzy.yaml

This file was deleted.

7 changes: 7 additions & 0 deletions .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

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

12 changes: 0 additions & 12 deletions .travis.yml

This file was deleted.

32 changes: 0 additions & 32 deletions Package.resolved

This file was deleted.

14 changes: 4 additions & 10 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
// swift-tools-version:5.8
// swift-tools-version:5.9

import PackageDescription

let package = Package(
name: "XCoordinator",
platforms: [.iOS(.v11), .tvOS(.v11)],
platforms: [.iOS(.v14), .tvOS(.v14)],
products: [
.library(
name: "XCoordinator",
targets: ["XCoordinator"]),
.library(
name: "XCoordinatorRx",
targets: ["XCoordinatorRx"]),
.library(
name: "XCoordinatorCombine",
targets: ["XCoordinatorCombine"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"),
.package(url: "https://github.com/ReactiveX/RxSwift.git", from: "6.0.0"),
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.3.0"),
.package(url: "https://github.com/ReactiveX/RxSwift.git", from: "6.5.0"),
],
targets: [
.target(
Expand All @@ -27,9 +24,6 @@ let package = Package(
.target(
name: "XCoordinatorRx",
dependencies: ["XCoordinator", "RxSwift"]),
.target(
name: "XCoordinatorCombine",
dependencies: ["XCoordinator"]),
.testTarget(
name: "XCoordinatorTests",
dependencies: ["XCoordinator", "XCoordinatorRx"]),
Expand Down
Loading
Loading