view .github/workflows/swift.yml @ 43:b18d0bac2f71

Update swift.yml committer: GitHub <noreply@github.com>
author Dennis C. M. <dennis@denniscm.com>
date Sat, 01 May 2021 11:25:10 +0200
parents c606924b2dd2
children 0b42bbb6c1b1
line wrap: on
line source

name: Swift package test

# We will trigger this workflow whenever someone pushes or pull request to the repo.
on:
   push:
     branches: [ main ]
   pull_request:
     branches: [ main ]

jobs:
  build:

    # We want our unit tests to be run on the latest available version of
    # macOS that Github Actions supports.
    runs-on: macOS-latest

    steps:
    - uses: actions/checkout@v1
    # Github Actions' machines do in fact have recent versions of Xcode,
    # but you may have to explicitly switch to them.  We explicitly want
    # to use Xcode 11, so we use xcode-select to switch to it.
    
    - name: Generate xcodeproj
      run: swift package generate-xcodeproj
    # Finally, we invoke xcodebuild to run the tests on an iPhone 11
    # simulator.
    
    - name: Run tests on iPhone 12
      run: xcodebuild test -destination 'name=iPhone 12' -scheme 'StockCharts'