Skip to content

All Swift from the ingredient list view down #30

All Swift from the ingredient list view down

All Swift from the ingredient list view down #30

Workflow file for this run

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
- uses: swift-actions/setup-swift@v1.25.0
- 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: |
sudo xcode-select -s /Applications/Xcode_15.1.app
swift --version
xcrun swift --version
cd $GITHUB_WORKSPACE/CookSmart
fastlane testlane