All Swift from the ingredient list view down #28
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: Cake Tests | |
on: pull_request | |
jobs: | |
test: | |
# TODO: macos-latest refers to macos12, which has a super old version of XCode tools that is causing problems | |
# We should go back to using macos-latest once macos-13 becomes generally available. | |
runs-on: [macos-13] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- name: Mint Cache | |
id: mint-cache | |
uses: actions/cache@master | |
with: | |
path: | | |
/usr/local/Cellar/mint | |
/usr/local/lib/mint/packages | |
key: ${{ runner.os }}-mint-2-${{ hashFiles('CookSmart/BuildTools/Mintfile') }} | |
- name: Homebrew Cache | |
id: homebrew-cache | |
if: steps.mint-cache.outputs.cache-hit != 'true' | |
uses: actions/cache@master | |
with: | |
path: | | |
~/Library/Caches/Homebrew | |
/usr/local/Homebrew | |
key: ${{ runner.os }}-homebrew-v2 | |
- name: Install Mint | |
if: steps.mint-cache.outputs.cache-hit != 'true' | |
run: | | |
brew update | |
brew link mint || brew install mint | |
brew cleanup | |
- name: Mint Bootstrap | |
run: | | |
brew link mint | |
cd $GITHUB_WORKSPACE/CookSmart/BuildTools | |
mint bootstrap -v | |
- name: Run Tests | |
run: | | |
swift --version | |
xcrun swift --version | |
cd $GITHUB_WORKSPACE/CookSmart | |
fastlane testlane | |