Skip to content

Commit eb73757

Browse files
authored
Replace FBSnapshotTestCase with pointfree/swift-snapshot-testing (ChartsOrg#4574)
* Replace FBSnapshotTestCase with pointfree/SnapshotTesting Use github actions for testing * Added iOS Snapshots * Update tests for SPM * Add snapshots for x86 and Silicon * Use Charts scheme for testing * Remove Carthage search paths * Fix x86 snapshots directory name * Clean iOS and tvOS tests before testing * Added action for building the iOS demo
1 parent b8dba59 commit eb73757

File tree

289 files changed

+464
-905
lines changed

Some content is hidden

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

289 files changed

+464
-905
lines changed

.github/workflows/swift.yml

+44-6
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,54 @@ name: Swift
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches:
6+
- master
67
pull_request:
7-
branches: [ master ]
8+
branches:
9+
- '*'
810

911
jobs:
10-
build:
12+
iOS:
13+
runs-on: macos-latest
14+
env:
15+
DEVELOPER_DIR: /Applications/Xcode_12.4.app/Contents/Developer
16+
strategy:
17+
matrix:
18+
destination: ["OS=14.4,name=iPhone 12 Pro"] #, "OS=12.4,name=iPhone XS", "OS=11.4,name=iPhone X", "OS=10.3.1,name=iPhone SE"]
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: iOS - ${{ matrix.destination }}
22+
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -workspace "Charts.xcworkspace" -scheme "Charts" -destination "${{ matrix.destination }}" clean test | xcpretty
1123

24+
tvOS:
1225
runs-on: macos-latest
26+
env:
27+
DEVELOPER_DIR: /Applications/Xcode_12.4.app/Contents/Developer
28+
strategy:
29+
matrix:
30+
destination: ["OS=14.3,name=Apple TV 4K"]
31+
steps:
32+
- uses: actions/checkout@v2
33+
- name: tvOS - ${{ matrix.destination }}
34+
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -workspace "Charts.xcworkspace" -scheme "Charts" -destination "${{ matrix.destination }}" clean test | xcpretty
1335

36+
macOS_demo:
37+
runs-on: macOS-latest
38+
env:
39+
DEVELOPER_DIR: /Applications/Xcode_12.4.app/Contents/Developer
40+
steps:
41+
- uses: actions/checkout@v2
42+
- name: macOS
43+
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -workspace "Charts.xcworkspace" -scheme "ChartsDemo-macOS" -destination "platform=macOS" clean build | xcpretty
44+
45+
iOS_demo:
46+
runs-on: macos-latest
47+
env:
48+
DEVELOPER_DIR: /Applications/Xcode_12.4.app/Contents/Developer
49+
strategy:
50+
matrix:
51+
destination: ["OS=14.4,name=iPhone 12 Pro"] #, "OS=12.4,name=iPhone XS", "OS=11.4,name=iPhone X", "OS=10.3.1,name=iPhone SE"]
1452
steps:
15-
- uses: actions/checkout@v2
16-
- name: Build
17-
run: swift build -v
53+
- uses: actions/checkout@v2
54+
- name: iOS - ${{ matrix.destination }}
55+
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -workspace "Charts.xcworkspace" -scheme "ChartsDemo-iOS" -destination "${{ matrix.destination }}" clean build | xcpretty

.travis.yml

-25
This file was deleted.

Cartfile.private

-1
This file was deleted.

Cartfile.resolved

-1
This file was deleted.

Charts.xcodeproj/project.pbxproj

+52-80
Large diffs are not rendered by default.

Charts.xcworkspace/xcshareddata/swiftpm/Package.resolved

+9
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@
1818
"revision": "6b24333510e9044cf4716a07bed65eeed6bc6393",
1919
"version": "0.0.8"
2020
}
21+
},
22+
{
23+
"package": "SnapshotTesting",
24+
"repositoryURL": "https://github.com/pointfreeco/swift-snapshot-testing",
25+
"state": {
26+
"branch": null,
27+
"revision": "c466812aa2e22898f27557e2e780d3aad7a27203",
28+
"version": "1.8.2"
29+
}
2130
}
2231
]
2332
},

Gemfile

-6
This file was deleted.

Gemfile.lock

-122
This file was deleted.

0 commit comments

Comments
 (0)