Skip to content

Commit

Permalink
[NBKFlexibleWidthKit] Merge up to and including v0.11.0 (#33).
Browse files Browse the repository at this point in the history
  • Loading branch information
oscbyspro committed Sep 9, 2023
2 parents eb89acf + 98a69b0 commit e99c487
Show file tree
Hide file tree
Showing 84 changed files with 5,087 additions and 2,130 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/publish-specifications-on-cocoapods.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish specifications on CocoaPods

on:
workflow_dispatch:
release:
types: [created]

jobs:
publish:
runs-on: macos-13
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Select Xcode 14.3.1
run: sudo xcode-select --switch /Applications/Xcode_14.3.1.app

- name: Publish 'Numberick-NBKCoreKit.podspec'
run: pod trunk push --allow-warnings --synchronous Numberick-NBKCoreKit.podspec
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}

- name: Publish 'Numberick-NBKDoubleWidthKit.podspec'
run: pod trunk push --allow-warnings --synchronous Numberick-NBKDoubleWidthKit.podspec
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}

- name: Publish 'Numberick.podspec'
run: pod trunk push --allow-warnings --synchronous Numberick.podspec
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
33 changes: 33 additions & 0 deletions .github/workflows/run-lint-on-cocoapods-specifications.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Run lint on CocoaPods specifications

on:
workflow_dispatch:
push:
tags:
- 'CocoaPods-v[0-9]+.[0-9]+.[0-9]+'
- 'CocoaPods-v[0-9]+.[0-9]+.[0-9]+-*'

jobs:
macos:
strategy:
matrix:
element:
- xcode: '14.3'
machine: macos-13

runs-on: ${{ matrix.element.machine }}

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Select Xcode ${{ matrix.element.xcode }}
run: sudo xcode-select --switch /Applications/Xcode_${{ matrix.element.xcode }}.app
- name: Run lint on 'Numberick.podspec'
run: |
DEPENDENCIES=''
DEPENDENCIES+=Numberick-NBKCoreKit.podspec,
DEPENDENCIES+=Numberick-NBKDoubleWidthKit.podspec,
pod lib lint Numberick.podspec \
--allow-warnings \
--fail-fast \
--include-podspecs=\{$DEPENDENCIES\}
26 changes: 26 additions & 0 deletions .github/workflows/run-tests-on-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Run tests on Linux

on:
workflow_dispatch:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
linux:
strategy:
matrix:
element:
- swift: '5.7'
- swift: '5.8'

runs-on: ubuntu-latest
container:
image: swift:${{ matrix.element.swift }}

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Test
run: swift test
28 changes: 28 additions & 0 deletions .github/workflows/run-tests-on-macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Run tests on macOS

on:
workflow_dispatch:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
macos:
strategy:
matrix:
element:
- xcode: '14.2'
machine: macos-12
- xcode: '14.3'
machine: macos-13

runs-on: ${{ matrix.element.machine }}

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Select Xcode ${{ matrix.element.xcode }}
run: sudo xcode-select --switch /Applications/Xcode_${{ matrix.element.xcode }}.app
- name: Test
run: xcrun swift test
71 changes: 0 additions & 71 deletions .swiftpm/xcode/xcshareddata/xcschemes/NBKFlexibleWidthKit.xcscheme

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -20,48 +20,6 @@
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "NO"
buildForProfiling = "NO"
buildForArchiving = "NO"
buildForAnalyzing = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "NBKCoreKitBenchmarks"
BuildableName = "NBKCoreKitBenchmarks"
BlueprintName = "NBKCoreKitBenchmarks"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "NO"
buildForProfiling = "NO"
buildForArchiving = "NO"
buildForAnalyzing = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "NBKDoubleWidthKitBenchmarks"
BuildableName = "NBKDoubleWidthKitBenchmarks"
BlueprintName = "NBKDoubleWidthKitBenchmarks"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "NO"
buildForProfiling = "NO"
buildForArchiving = "NO"
buildForAnalyzing = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "NBKResizableWidthKitBenchmarks"
BuildableName = "NBKResizableWidthKitBenchmarks"
BlueprintName = "NBKResizableWidthKitBenchmarks"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
Expand All @@ -81,10 +39,10 @@
reference = "container:.swiftpm/NBKDoubleWidthKit-Benchmarks.xctestplan">
</TestPlanReference>
<TestPlanReference
reference = "container:.swiftpm/NBKFlexibleWidthKit-Benchmarks.xctestplan">
reference = "container:.swiftpm/NBKResizableWidthKit-Benchmarks.xctestplan">
</TestPlanReference>
<TestPlanReference
reference = "container:.swiftpm/NBKResizableWidthKit-Benchmarks.xctestplan">
reference = "container:.swiftpm/NBKFlexibleWidthKit-Benchmarks.xctestplan">
</TestPlanReference>
</TestPlans>
</TestAction>
Expand Down
18 changes: 2 additions & 16 deletions .swiftpm/xcode/xcshareddata/xcschemes/Numberick.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -48,20 +48,6 @@
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "NO"
buildForProfiling = "NO"
buildForArchiving = "NO"
buildForAnalyzing = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "NBKResizableWidthKit"
BuildableName = "NBKResizableWidthKit"
BlueprintName = "NBKResizableWidthKit"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "NO"
Expand Down Expand Up @@ -91,10 +77,10 @@
reference = "container:.swiftpm/NBKDoubleWidthKit.xctestplan">
</TestPlanReference>
<TestPlanReference
reference = "container:.swiftpm/NBKFlexibleWidthKit.xctestplan">
reference = "container:.swiftpm/NBKResizableWidthKit.xctestplan">
</TestPlanReference>
<TestPlanReference
reference = "container:.swiftpm/NBKResizableWidthKit.xctestplan">
reference = "container:.swiftpm/NBKFlexibleWidthKit.xctestplan">
</TestPlanReference>
</TestPlans>
</TestAction>
Expand Down
Loading

0 comments on commit e99c487

Please sign in to comment.