Skip to content

Commit

Permalink
Replace FBSnapshotTestCase with pointfree/swift-snapshot-testing (Cha…
Browse files Browse the repository at this point in the history
…rtsOrg#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
  • Loading branch information
jjatie authored and abhiramvadlapatla committed Dec 21, 2021
1 parent db260ab commit 4e8ff2d
Show file tree
Hide file tree
Showing 289 changed files with 464 additions and 905 deletions.
50 changes: 44 additions & 6 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,54 @@ name: Swift

on:
push:
branches: [ master ]
branches:
- master
pull_request:
branches: [ master ]
branches:
- '*'

jobs:
build:
iOS:
runs-on: macos-latest
env:
DEVELOPER_DIR: /Applications/Xcode_12.4.app/Contents/Developer
strategy:
matrix:
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"]
steps:
- uses: actions/checkout@v2
- name: iOS - ${{ matrix.destination }}
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -workspace "Charts.xcworkspace" -scheme "Charts" -destination "${{ matrix.destination }}" clean test | xcpretty

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

macOS_demo:
runs-on: macOS-latest
env:
DEVELOPER_DIR: /Applications/Xcode_12.4.app/Contents/Developer
steps:
- uses: actions/checkout@v2
- name: macOS
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -workspace "Charts.xcworkspace" -scheme "ChartsDemo-macOS" -destination "platform=macOS" clean build | xcpretty

iOS_demo:
runs-on: macos-latest
env:
DEVELOPER_DIR: /Applications/Xcode_12.4.app/Contents/Developer
strategy:
matrix:
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"]
steps:
- uses: actions/checkout@v2
- name: Build
run: swift build -v
- uses: actions/checkout@v2
- name: iOS - ${{ matrix.destination }}
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -workspace "Charts.xcworkspace" -scheme "ChartsDemo-iOS" -destination "${{ matrix.destination }}" clean build | xcpretty
25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

1 change: 0 additions & 1 deletion Cartfile.private

This file was deleted.

1 change: 0 additions & 1 deletion Cartfile.resolved

This file was deleted.

132 changes: 52 additions & 80 deletions Charts.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions Charts.xcworkspace/xcshareddata/swiftpm/Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@
"revision": "6b24333510e9044cf4716a07bed65eeed6bc6393",
"version": "0.0.8"
}
},
{
"package": "SnapshotTesting",
"repositoryURL": "https://github.com/pointfreeco/swift-snapshot-testing",
"state": {
"branch": null,
"revision": "c466812aa2e22898f27557e2e780d3aad7a27203",
"version": "1.8.2"
}
}
]
},
Expand Down
6 changes: 0 additions & 6 deletions Gemfile

This file was deleted.

122 changes: 0 additions & 122 deletions Gemfile.lock

This file was deleted.

Loading

0 comments on commit 4e8ff2d

Please sign in to comment.