Fix swift.yml to work with project #5
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
# This workflow will build a Swift project | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift | |
name: Swift | |
on: | |
push: | |
branches: [ "dev" ] | |
pull_request: | |
branches: [ "dev" ] | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install CocoaPods dependencies | |
run: pod install | |
- name: Build | |
run: xcodebuild -workspace MarvelApp.xcworkspace -scheme MarvelApp -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 11,OS=latest' build | |
- name: Run tests | |
run: xcodebuild -workspace MarvelApp.xcworkspace -scheme MarvelApp -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 11,OS=latest' test | |
- name: Generate code coverage reports | |
run: bash <(curl -s https://codecov.io/bash) |