Skip to content

Change Sequence.contains(_:) where Element: Hashable to receive any Sequence #1371

Change Sequence.contains(_:) where Element: Hashable to receive any Sequence

Change Sequence.contains(_:) where Element: Hashable to receive any Sequence #1371

Workflow file for this run

name: SwifterSwift
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
Darwin:
name: Darwin
runs-on: macos-14
env:
PROJECT: SwifterSwift.xcodeproj
DEVELOPER_DIR: /Applications/Xcode.app/Contents/Developer
steps:
- uses: actions/checkout@v1
- name: Bundle Install
run: bundle install
- name: Brew Upgrade
run: |
brew update-reset
brew bundle --no-upgrade
- name: Test iOS
run: |
xcodebuild clean build test -project $PROJECT -scheme $SCHEME -destination "$DESTINATION" | XCPRETTY_JSON_FILE_OUTPUT="xcodebuild-ios.json" xcpretty -f `xcpretty-json-formatter`
bash <(curl -s https://codecov.io/bash) -cF ios -J 'SwifterSwift'
env:
SCHEME: SwifterSwift-iOS
DESTINATION: platform=iOS Simulator,name=iPhone 15
- name: Test MacOS
run: |
xcodebuild clean build test -project $PROJECT -scheme $SCHEME -destination "$DESTINATION" | XCPRETTY_JSON_FILE_OUTPUT="xcodebuild-macos.json" xcpretty -f `xcpretty-json-formatter`
bash <(curl -s https://codecov.io/bash) -cF macos -J 'SwifterSwift'
env:
SCHEME: SwifterSwift-macOS
DESTINATION: platform=OS X
- name: Test TVOS
run: |
xcodebuild clean build test -project $PROJECT -scheme $SCHEME -destination "$DESTINATION" | XCPRETTY_JSON_FILE_OUTPUT="xcodebuild-tvos.json" xcpretty -f `xcpretty-json-formatter`
bash <(curl -s https://codecov.io/bash) -cF tvos -J 'SwifterSwift'
env:
SCHEME: SwifterSwift-tvOS
DESTINATION: platform=tvOS Simulator,name=Apple TV
- name: Build WatchOS
run: xcodebuild clean build -project $PROJECT -scheme $SCHEME -destination "$DESTINATION"
env:
SCHEME: SwifterSwift-watchOS
DESTINATION: platform=watchOS Simulator,name=Apple Watch Series 5 (40mm)
- name: Danger Swift
# Hack to by pass the key invalidation mechanism
# See for more info: https://github.community/t5/GitHub-Actions/Make-secrets-available-to-builds-of-forks/td-p/30678
run: |
export DANGER_GITHUB_API_TOKEN=$(echo bd3b560e741b854e0c49b4f6a66d82418ab7e1fb | rev)
bundle exec danger --verbose
Swiftlint:
runs-on: macos-14
name: SwiftLint
steps:
- uses: actions/checkout@v1
- name: SwiftLint
run: |
brew update-reset
brew bundle --no-upgrade
swiftlint
CocoaPods:
name: CocoaPods
runs-on: macos-14
strategy:
matrix:
platform: ['ios', 'macos', 'tvos', 'watchos']
env:
DEVELOPER_DIR: /Applications/Xcode.app/Contents/Developer
steps:
- uses: actions/checkout@v1
- name: Bundle Install
run: bundle install
- name: CocoaPods ${{ matrix.platform }}
run: bundle exec pod lib lint --skip-tests --allow-warnings --verbose --platforms=${{ matrix.platform }}
Linux:
runs-on: [ubuntu-latest]
container: swift:5.8
steps:
- uses: actions/checkout@v1
- name: Linux
run: swift test --enable-test-discovery --parallel