Release 1.2.0 (#7) #27
This file contains hidden or 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: "CI" | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| env: | |
| LC_CTYPE: en_US.UTF-8 | |
| LANG: en_US.UTF-8 | |
| jobs: | |
| BuildAndTests: | |
| name: Build & Tests | |
| runs-on: macOS-15 | |
| env: | |
| DEVELOPER_DIR: /Applications/Xcode_16.4.app | |
| XCODE_PROJECT: URLQueryCoder.xcodeproj | |
| IOS_SCHEME: URLQueryCoder iOS | |
| IOS_DESTINATION: OS=18.5,name=iPhone 16 | |
| IOS_RESULT_PATH: xcodebuild-ios.xcresult | |
| MACOS_SCHEME: URLQueryCoder macOS | |
| MACOS_DESTINATION: platform=macOS | |
| MACOS_RESULT_PATH: xcodebuild-macos.xcresult | |
| TVOS_SCHEME: URLQueryCoder tvOS | |
| TVOS_DESTINATION: OS=18.5,name=Apple TV | |
| TVOS_RESULT_PATH: xcodebuild-tvos.xcresult | |
| WATCHOS_SCHEME: URLQueryCoder watchOS | |
| WATCHOS_DESTINATION: OS=11.5,name=Apple Watch Series 10 (42mm) | |
| WATCHOS_RESULT_PATH: xcodebuild-watchos.xcresult | |
| SKIP_SWIFTLINT: YES | |
| DANGER_GITHUB_API_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }} | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: ruby/setup-ruby@v1 | |
| - name: Bundler | |
| run: | | |
| gem install bundler | |
| bundle install --without=documentation | |
| - name: Preparation | |
| run: | | |
| set -o pipefail | |
| swift --version | |
| - name: Test iOS | |
| run: | | |
| xcodebuild clean build test \ | |
| -project "$XCODE_PROJECT" \ | |
| -scheme "$IOS_SCHEME" \ | |
| -destination "$IOS_DESTINATION" \ | |
| -resultBundlePath "$IOS_RESULT_PATH" | xcpretty -f `xcpretty-json-formatter` | |
| bash <(curl -s https://codecov.io/bash) -cF ios -J 'URLQueryCoder' | |
| - name: Test macOS | |
| run: | | |
| xcodebuild clean build test \ | |
| -project "$XCODE_PROJECT" \ | |
| -scheme "$MACOS_SCHEME" \ | |
| -destination "$MACOS_DESTINATION" \ | |
| -resultBundlePath "$MACOS_RESULT_PATH" | xcpretty -f `xcpretty-json-formatter` | |
| bash <(curl -s https://codecov.io/bash) -cF osx -J 'URLQueryCoder' | |
| - name: Test tvOS | |
| run: | | |
| xcodebuild clean build test \ | |
| -project "$XCODE_PROJECT" \ | |
| -scheme "$TVOS_SCHEME" \ | |
| -destination "$TVOS_DESTINATION" \ | |
| -resultBundlePath "$TVOS_RESULT_PATH" | xcpretty -f `xcpretty-json-formatter` | |
| bash <(curl -s https://codecov.io/bash) -cF tvos -J 'URLQueryCoder' | |
| - name: Build watchOS | |
| run: | | |
| xcodebuild clean build \ | |
| -project "$XCODE_PROJECT" \ | |
| -scheme "$WATCHOS_SCHEME" \ | |
| -destination "$WATCHOS_DESTINATION" \ | |
| -resultBundlePath "$WATCHOS_RESULT_PATH" | xcpretty -f `xcpretty-json-formatter` | |
| - name: Danger | |
| run: bundle exec danger --remove-previous-comments | |
| Cocoapods: | |
| name: Cocoapods | |
| runs-on: macOS-15 | |
| env: | |
| DEVELOPER_DIR: /Applications/Xcode_16.4.app | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: ruby/setup-ruby@v1 | |
| - name: Bundler | |
| run: | | |
| gem install bundler | |
| bundle install --without=documentation | |
| - name: Linting | |
| run: bundle exec pod lib lint --skip-tests --allow-warnings | |
| SPM: | |
| name: Swift Package Manager | |
| runs-on: macOS-15 | |
| env: | |
| DEVELOPER_DIR: /Applications/Xcode_16.4.app | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Build | |
| run: swift build |