Add removeAll() method to WeakMapTable #26
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-15-arm64 # Apple Silicon | |
| strategy: | |
| matrix: | |
| env: | |
| - sdk: iphonesimulator | |
| destination: platform=iOS Simulator,name=iPhone 15 Pro,OS=latest | |
| - sdk: macosx | |
| destination: arch=arm64 | |
| - sdk: appletvsimulator | |
| destination: platform=tvOS Simulator,name=Apple TV 4K (3rd generation),OS=latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Select Xcode 16.4 | |
| run: sudo xcode-select -s /Applications/Xcode_16.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/codecov-action@v3.1.0 | |
| with: | |
| xcode: true | |
| xcode_archive_path: "./${{ matrix.env.sdk }}.xcresult" |