Skip to content

Added CI badge to readme (#13) #6

Added CI badge to readme (#13)

Added CI badge to readme (#13) #6

Workflow file for this run

# 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: Tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Build for iOS
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild build-for-testing -scheme SegmentedPicker -destination "platform=iOS Simulator,OS=17.4,name=iPhone 14" | xcpretty
- name: Run iOS tests
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild test-without-building -scheme SegmentedPicker -destination "platform=iOS Simulator,OS=17.4,name=iPhone 14" | xcpretty