Skip to content

Commit 223b26b

Browse files
authored
Revamp CI (siteline#185)
1 parent 3fe1be1 commit 223b26b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+709
-2035
lines changed

.github/workflows/build-and-test.yml

-59
This file was deleted.

.github/workflows/ci.yml

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- "**"
10+
11+
concurrency:
12+
group: ci-${{ github.ref }}
13+
cancel-in-progress: true
14+
15+
jobs:
16+
ci:
17+
name: ${{ matrix.platform[0] }} ${{ matrix.platform[1] }}
18+
runs-on: ${{ matrix.os }}
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
platform:
23+
- [ios, 14]
24+
- [ios, 15]
25+
- [ios, 16]
26+
- [macos, 11]
27+
- [macos, 12]
28+
include:
29+
- platform: [ios, 14]
30+
os: macos-11
31+
xcode: 12.5.1
32+
- platform: [ios, 15]
33+
os: macos-12
34+
xcode: 13.4.1
35+
- platform: [ios, 16]
36+
os: macos-12
37+
xcode: 14.2
38+
- platform: [macos, 11]
39+
os: macos-11
40+
xcode: 13.0
41+
- platform: [macos, 12]
42+
os: macos-12
43+
xcode: 14.0.1
44+
45+
steps:
46+
- name: Git Checkout
47+
uses: actions/checkout@v3
48+
49+
- name: Select Xcode version
50+
uses: maxim-lobanov/setup-xcode@v1
51+
with:
52+
xcode-version: ${{ matrix.xcode }}
53+
54+
# - name: Export macOS SDK
55+
# run: echo SDKROOT=$(xcrun --sdk macosx --show-sdk-path) >> $GITHUB_ENV
56+
57+
- name: Install Homebrew dependencies
58+
run: brew install xcbeautify
59+
60+
- name: Lint Podspec
61+
run: pod lib lint
62+
63+
- name: Run Tests
64+
run: fastlane ${{ matrix.platform[0] }} test version:${{ matrix.platform[1] }}

.gitignore

+5-79
Original file line numberDiff line numberDiff line change
@@ -1,87 +1,13 @@
11
.DS_Store
2-
3-
# Xcode
4-
#
5-
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
6-
7-
## User settings
2+
/.build
3+
/.swiftpm
4+
/Packages
5+
/*.xcodeproj
86
xcuserdata/
9-
10-
## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
11-
*.xcscmblueprint
12-
*.xccheckout
13-
14-
## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
15-
build/
167
DerivedData/
17-
*.moved-aside
18-
*.pbxuser
19-
!default.pbxuser
20-
*.mode1v3
21-
!default.mode1v3
22-
*.mode2v3
23-
!default.mode2v3
24-
*.perspectivev3
25-
!default.perspectivev3
26-
27-
## Obj-C/Swift specific
28-
*.hmap
29-
30-
## App packaging
31-
*.ipa
32-
*.dSYM.zip
33-
*.dSYM
34-
35-
## Playgrounds
36-
timeline.xctimeline
37-
playground.xcworkspace
38-
39-
# Swift Package Manager
40-
#
41-
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
42-
# Packages/
43-
# Package.pins
44-
# Package.resolved
45-
# *.xcodeproj
46-
#
47-
# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
48-
# hence it is not needed unless you have added a package configuration file to your project
49-
# .swiftpm
50-
51-
.build/
52-
53-
# CocoaPods
54-
Pods/
55-
#
56-
# Add this line if you want to avoid checking in source code from the Xcode workspace
57-
# *.xcworkspace
58-
59-
# Carthage
60-
#
61-
# Add this line if you want to avoid checking in source code from Carthage dependencies.
62-
# Carthage/Checkouts
63-
64-
Carthage/Build/
65-
66-
# Accio dependency management
67-
Dependencies/
68-
.accio/
69-
70-
# fastlane
71-
#
72-
# It is recommended to not store the screenshots in the git repo.
73-
# Instead, use fastlane to re-generate the screenshots whenever they are needed.
74-
# For more information about the recommended setup visit:
75-
# https://docs.fastlane.tools/best-practices/source-control/#source-control
8+
.netrc
769

7710
fastlane/report.xml
7811
fastlane/Preview.html
7912
fastlane/screenshots/**/*.png
8013
fastlane/test_output
81-
82-
# Code Injection
83-
#
84-
# After new code Injection tools there's a generated folder /iOSInjectionProject
85-
# https://github.com/johnno1962/injectionforxcode
86-
87-
iOSInjectionProject/

.ruby-version

-1
This file was deleted.

Examples/Package.swift

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// swift-tools-version:5.4
2+
3+
import PackageDescription
4+
5+
let package = Package(
6+
name: "Examples",
7+
products: [],
8+
targets: []
9+
)

0 commit comments

Comments
 (0)