feat: hook up swift-testing #157
Workflow file for this run
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: Main | |
on: [push, pull_request] | |
jobs: | |
mac-test: | |
name: Mac Test | |
runs-on: macOS-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
- name: Build and test | |
env: | |
WORKSPACE: "-workspace SWXMLHash.xcworkspace" | |
ACTION: "build-for-testing test-without-building" | |
run: | | |
set -o pipefail | |
xcodebuild $ACTION $WORKSPACE -scheme "SWXMLHash OSX" | xcpretty | |
xcodebuild $ACTION $WORKSPACE -scheme "SWXMLHash iOS" -sdk iphonesimulator -destination "OS=17.2,name=iPhone 15" | xcpretty | |
xcodebuild $ACTION $WORKSPACE -scheme "SWXMLHash tvOS" -sdk appletvsimulator -destination "name=Apple TV" | xcpretty | |
xcodebuild build $WORKSPACE -scheme "SWXMLHash watchOS" -sdk watchsimulator | xcpretty | |
bash <(curl -s https://codecov.io/bash) -t ${{secrets.CODECOV_TOKEN}} | |
linux-test: | |
name: Linux Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
- name: Build and test | |
run: | | |
eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/9f442512a46d7a2af7b850d65a7e9bd31edfb09b/swiftenv-install.sh)" | |
swift test | |
windows-test: | |
name: Windows Test | |
runs-on: windows-latest | |
steps: | |
- name: Install Swift | |
uses: compnerd/gha-setup-swift@main | |
with: | |
branch: swift-5.8-release | |
tag: 5.8-RELEASE | |
- name: Checkout | |
uses: actions/checkout@master | |
- name: Build and test | |
run: swift test |