Skip to content

Commit

Permalink
Split Route
Browse files Browse the repository at this point in the history
  • Loading branch information
eliotw1 committed Aug 15, 2023
1 parent c15dabe commit f2f9363
Showing 1 changed file with 42 additions and 8 deletions.
50 changes: 42 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 4,7 @@ jobs:
danger:
executor: xcode-14
steps:
- setup
- setup-apple-silicon
- run:
name: Install xchtmlreport
command: |
Expand Down Expand Up @@ -57,18 57,24 @@ jobs:
swift-package:
executor: xcode-14
steps:
- setup
- setup-apple-silicon
- run: swift build
- run: swift test

lint-pod:
executor: xcode-14
steps:
- setup
- setup-apple-silicon
- lint-pod

fastlane-tests:
executor: xcode-14
steps:
- setup-apple-silicon
- run: bundle exec fastlane test_all

fastlane-tests-xcode-12:
executor: xcode-12
steps:
- setup
- run: bundle exec fastlane test_all
Expand Down Expand Up @@ -126,14 132,15 @@ executors:
shell: /bin/bash --login -eo pipefail

commands:
setup:
description: "Shared setup"

setup-apple-silicon:
description: "Shared Apple Silicon setup"
steps:
- checkout
- restore-gems
- restore-gems-apple-silicon

restore-gems:
description: "Restore Ruby Gems"
restore-gems-apple-silicon:
description: "Restore Ruby Gems: Apple Silicon"
steps:
- run:
name: Ruby Setup
Expand All @@ -149,6 156,26 @@ commands:
paths:
- vendor/bundle

setup:
description: "Shared setup"
steps:
- checkout
- restore-gems

restore-gems:
description: "Restore Ruby Gems"
steps:
- run:
name: Set Ruby Version
command: echo "ruby-2.5" > ~/.ruby-version
- restore_cache:
key: 1-gems-{{ checksum "Gemfile.lock" }}
- run: bundle check || bundle install --path vendor/bundle
- save_cache:
key: 1-gems-{{ checksum "Gemfile.lock" }}
paths:
- vendor/bundle

lint-pod:
description: "Lints podspec with specified Swift version"
parameters:
Expand Down Expand Up @@ -178,6 205,10 @@ workflows:
filters:
tags:
only: /.*/
- fastlane-tests-xcode-12:
filters:
tags:
only: /.*/
- lint-pod:
filters:
tags:
Expand All @@ -193,8 224,11 @@ workflows:
- swift-package
- fastlane-tests
- fastlane-tests-xcode-13
- fastlane-tests-xcode-12
- lint-pod
- carthage-build
- setup-apple-silicon
- setup
filters:
tags:
only: /\d (\.\d )*(-.*)*/
Expand Down

0 comments on commit f2f9363

Please sign in to comment.