This repository has been archived by the owner on Nov 13, 2024. It is now read-only.
Push image diffs #620
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: push | |
jobs: | |
test: | |
name: Run tests | |
runs-on: macos-13 | |
strategy: | |
matrix: | |
# Adding additional destinations, schemes, etc. here will make GitHub run the steps | |
# on all combinations of them (e.g., if there are 2 destinations and 2 schemes, the | |
# test suite will get run 4 times). | |
destination: ["platform=iOS Simulator,OS=17.0.1,name=iPhone 15"] | |
scheme: ["Thumbprint"] | |
xcode: ["/Applications/Xcode_15.0.1.app"] | |
steps: | |
- name: 📥 Checkout | |
uses: actions/checkout@v2 | |
- name: 🔎 Run lint checks | |
run: sh .github/scripts/lint.sh | |
- name: 📋 Build and test | |
run: sh .github/scripts/run_tests.sh || echo "Pushing diffs" | |
env: | |
scheme: ${{ matrix.scheme }} | |
destination: ${{ matrix.destination }} | |
DEVELOPER_DIR: ${{ matrix.xcode }} | |
- name: 📥 Push | |
run: | | |
git config --global user.name 'tt-ios-bot' | |
git config --global user.email '[email protected]' | |
git commit -am "Image Diffs" | |
git push |