Add removeAll() method to WeakMapTable #25
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: | |
| - master | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: macOS-latest | |
| strategy: | |
| matrix: | |
| env: | |
| - sdk: iphonesimulator | |
| destination: platform=iOS Simulator,name=iPhone 12 Pro,OS=latest | |
| - sdk: macosx | |
| destination: arch=x86_64 | |
| - sdk: appletvsimulator | |
| destination: platform=tvOS Simulator,name=Apple TV,OS=latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Select Xcode 12.4 | |
| run: sudo xcode-select -s /Applications/Xcode_12.4.app | |
| - name: Generate Xcode Project | |
| run: swift package generate-xcodeproj --enable-code-coverage | |
| - name: Build and Test | |
| run: | | |
| set -o pipefail && xcodebuild clean build test \ | |
| -project "$PROJECT" \ | |
| -scheme "$SCHEME" \ | |
| -sdk "$SDK" \ | |
| -destination "$DESTINATION" \ | |
| -configuration Debug \ | |
| -enableCodeCoverage YES \ | |
| -resultBundlePath "./${{ matrix.env.sdk }}.xcresult" \ | |
| CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty -c; | |
| env: | |
| PROJECT: WeakMapTable.xcodeproj | |
| SCHEME: WeakMapTable-Package | |
| SDK: ${{ matrix.env.sdk }} | |
| DESTINATION: ${{ matrix.env.destination }} | |
| - name: Upload coverage to Codecov | |
| uses: codecov/[email protected] | |
| with: | |
| xcode: true | |
| xcode_archive_path: "./${{ matrix.env.sdk }}.xcresult" |