Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
95bb0d3
chore: Setup example app to run on GitHub Actions
manosim Oct 12, 2021
25eaeb5
Build the library before building the app
manosim Oct 12, 2021
7ef4430
Attempt to boot the simulator when running tests
manosim Oct 12, 2021
a33c7cc
Update device name (simulator)
manosim Oct 12, 2021
bef3b55
Run tmate if it fails
manosim Oct 12, 2021
3be4190
Move tmate
manosim Oct 12, 2021
dd65d30
Boot simulator separately
manosim Oct 12, 2021
f8d3955
Retry
manosim Oct 12, 2021
1792774
Fix TS
manosim Oct 12, 2021
11d62ff
Clean run to cache pods etc.
manosim Oct 12, 2021
7cc6318
Use macOS 11 (Big Sur)
manosim Oct 12, 2021
ac24316
Bring back running tests
manosim Oct 12, 2021
657ad85
Add @babel/runtime as a dependency to the library
manosim Oct 13, 2021
139c4fc
Remote tmate session
manosim Oct 13, 2021
9817b6c
macOS-latest workflows now use macOS-11.
manosim Oct 13, 2021
3e88712
Update os & baseline
manosim Oct 13, 2021
73f21a9
Update the baseline with iOS 14.5 (one used by GitHub Actions)
manosim Oct 13, 2021
73f2d15
Update screenshot again
manosim Oct 14, 2021
0a9e1c0
Try running simulator on iOS 15
manosim Oct 14, 2021
28feee0
Another try
manosim Oct 14, 2021
58863e8
Switch to Xcode 13 on Github Actions
manosim Oct 14, 2021
ccff166
Switch the simulator to iPhone 13 Pro
manosim Oct 14, 2021
806838b
Flip appearance mode (dark/light) to have a consistent virtual home b…
manosim Oct 14, 2021
b3eae7d
Go back to XCode 12, iPhone 12 Pro & iOS 14.5
manosim Oct 14, 2021
e5d0f6e
Remove simulator helpers
manosim Oct 14, 2021
0b908fb
Clean up
manosim Oct 14, 2021
98458bb
Fix runner tests
manosim Oct 15, 2021
4d53ba7
Get version of xcode
manosim Oct 15, 2021
3876ac7
Fix test path
manosim Oct 15, 2021
b0b0c4b
Fix tests
manosim Oct 15, 2021
e26ee25
Update lockfile
manosim Oct 15, 2021
1ac7b28
Switch from using mdls to PlistBuddy to get the bundle id :crossed_fi…
manosim Oct 15, 2021
dd87a2a
Change job name
manosim Oct 18, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 70 additions & 0 deletions .github/workflows/demo-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Demo App

on: [pull_request]

jobs:
run-visual-regression-ios:
runs-on: macos-11

steps:
- uses: actions/checkout@v2

- name: Get Runner Information
run: /usr/bin/xcodebuild -version

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

- name: Install Dependencies (Library)
run: yarn install --frozen-lockfile
working-directory: ./

- name: Compile the library
run: yarn build
working-directory: ./

- name: Install Dependencies (Example App)
run: yarn install --frozen-lockfile
working-directory: ./example

- name: Install CocoaPods
run: gem install cocoapods -v 1.11.0

- uses: actions/cache@v2
with:
path: ./example/ios/Pods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-pods-

- name: Install CocoaPods
run: pod install
working-directory: ./example/ios

- uses: futureware-tech/simulator-action@v1
with:
model: 'iPhone 12 Pro'
os_version: '=14.5'

- name: Run Owl Build
run: yarn owl:build:ios
working-directory: ./example

- name: Run Owl Test
run: yarn owl:test:ios
working-directory: ./example

- name: Store screenshots as artifacts
uses: actions/upload-artifact@v2
with:
name: owl-screenshots
path: example/.owl
Binary file modified example/.owl/baseline/ios/homescreen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion example/owl.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"workspace": "ios/OwlDemo.xcworkspace",
"scheme": "OwlDemo",
"configuration": "Release",
"device": "iPhone 13 Pro",
"device": "iPhone 12 Pro",
"quiet": true
},
"android": {
Expand Down
Loading