Skip to content

Improved email validation #136

Improved email validation

Improved email validation #136

Workflow file for this run

name: "SwiftyUtils CI"
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
macOS:
name: Test macOS
runs-on: macOS-13
steps:
- uses: actions/checkout@v1
- name: macOS
run: |
sudo xcode-select -p
sudo xcode-select -s /Applications/Xcode_14.2.app/Contents/Developer
set -o pipefail && env NSUnbufferedIO=YES xcodebuild -project "SwiftyUtils.xcodeproj" -scheme "SwiftyUtils macOS" -destination "platform=macOS" -destination-timeout 10 clean test | xcpretty
iOS:
name: Test iOS
runs-on: macOS-13
strategy:
matrix:
destination: ["platform=iOS Simulator,name=iPhone 14"] #, "OS=12.4,name=iPhone XS", "OS=11.4,name=iPhone X", "OS=10.3.1,name=iPhone SE"]
steps:
- uses: actions/checkout@v1
- name: iOS - ${{ matrix.destination }}
run: |
sudo xcode-select -s /Applications/Xcode_14.3.app/Contents/Developer
set -o pipefail && env NSUnbufferedIO=YES xcodebuild -project "SwiftyUtils.xcodeproj" -scheme "SwiftyUtils iOS" -destination "${{ matrix.destination }}" -destination-timeout 10 clean test | xcpretty
tvOS:
name: Test tvOS
runs-on: macOS-13
strategy:
matrix:
destination: ["platform=tvOS Simulator,name=Apple TV 4K (3rd generation)"] #, "OS=11.4,name=Apple TV 4K", "OS=10.2,name=Apple TV 1080p"]
steps:
- uses: actions/checkout@v1
- name: tvOS - ${{ matrix.destination }}
run: |
sudo xcode-select -s /Applications/Xcode_14.3.app/Contents/Developer
set -o pipefail && env NSUnbufferedIO=YES xcodebuild -project "SwiftyUtils.xcodeproj" -scheme "SwiftyUtils tvOS" -destination "${{ matrix.destination }}" -destination-timeout 10 clean test | xcpretty
watchOS:
name: Build watchOS
runs-on: macOS-13
strategy:
matrix:
destination: ["platform=watchOS Simulator,name=Apple Watch Series 8 (41mm)"] #, "OS=4.2,name=Apple Watch Series 3 - 42mm", "OS=3.2,name=Apple Watch Series 2 - 42mm"]
steps:
- uses: actions/checkout@v1
- name: watchOS - ${{ matrix.destination }}
run: |
sudo xcode-select -s /Applications/Xcode_14.3.app/Contents/Developer
set -o pipefail && env NSUnbufferedIO=YES xcodebuild -project "SwiftyUtils.xcodeproj" -scheme "SwiftyUtils watchOS" -destination "${{ matrix.destination }}" -destination-timeout 10 clean test | xcpretty
spm:
name: Test SPM Integration
runs-on: macOS-13
steps:
- uses: actions/checkout@v1
- name: SPM Build
run: |
sudo xcode-select -p
sudo xcode-select -s /Applications/Xcode_14.3.app/Contents/Developer
swift build
- name: SPM Test
run: |
sudo xcode-select -p
sudo xcode-select -s /Applications/Xcode_14.3.app/Contents/Developer
SPM_TESTING=true swift test