Skip to content

check: adding test for issue #280 #149

check: adding test for issue #280

check: adding test for issue #280 #149

Workflow file for this run

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=16.2,name=iPhone 13" | 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