Prefer .map over .flatMap when appropriate #3104
This file contains 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: Test | |
on: [push, pull_request] | |
jobs: | |
macOS: | |
runs-on: macos-15 | |
env: | |
DEVELOPER_DIR: /Applications/Xcode_16.2.app | |
steps: | |
- name: Show environments | |
run: | | |
xcodebuild -version | |
swift --version | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Unit Test for EditorCore | |
run: | | |
swift test --package-path Packages/EditorCore | |
- name: Unit Test for MacUI | |
run: | | |
swift test --package-path Packages/MacUI | |
- name: Unit Test for SyntaxMap | |
run: | | |
swift test --package-path Packages/SyntaxMap | |
- name: Unit Test for CotEditor | |
run: | | |
xcodebuild test -project CotEditor.xcodeproj -scheme CotEditor CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO -skipPackagePluginValidation |