Mercurial > public > stock-charts
changeset 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 | c01d47dd6bb2 |
files | .github/workflows/swift.yml |
diffstat | 1 files changed, 11 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/.github/workflows/swift.yml Sat May 01 11:21:50 2021 +0200 +++ b/.github/workflows/swift.yml Sat May 01 11:25:10 2021 +0200 @@ -1,7 +1,11 @@ -name: Unit Test +name: Swift package test -# We will trigger this workflow whenever someone pushes to the repo. -on: [push] +# We will trigger this workflow whenever someone pushes or pull request to the repo. +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] jobs: build: @@ -15,9 +19,11 @@ # 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 - run: xcodebuild test -destination 'name=iPhone 11' -scheme 'StockCharts' + + - name: Run tests on iPhone 12 + run: xcodebuild test -destination 'name=iPhone 12' -scheme 'StockCharts'