Don't error on writing close frame after receiving close frame #157
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 | |
| paths: | |
| - '**.swift' | |
| - '**.yml' | |
| pull_request: | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }}-ci | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| env: | |
| FUZZING_SERVER: autobahn | |
| jobs: | |
| macOS: | |
| runs-on: macos-26 | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Select appropriate Xcode version | |
| uses: maxim-lobanov/setup-xcode@v1 | |
| with: | |
| xcode-version: latest-stable | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: SPM tests | |
| run: swift test --enable-code-coverage | |
| - name: Convert coverage files | |
| run: | | |
| xcrun llvm-cov export -format "lcov" \ | |
| .build/debug/swift-websocketPackageTests.xctest/Contents/MacOs/swift-websocketPackageTests \ | |
| -ignore-filename-regex="\/Tests\/" \ | |
| -ignore-filename-regex="\/Benchmarks\/" \ | |
| -instr-profile=.build/debug/codecov/default.profdata > info.lcov | |
| - name: Upload to codecov.io | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| files: info.lcov | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| linux: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| strategy: | |
| matrix: | |
| image: ["swift:6.0", "swift:6.1", "swift:6.2", "swiftlang/swift:nightly-6.3-noble"] | |
| container: | |
| image: ${{ matrix.image }} | |
| services: | |
| autobahn: | |
| image: crossbario/autobahn-testsuite | |
| options: --name fuzzingserver | |
| ports: | |
| - 9001:9001 | |
| volumes: | |
| - ${{ github.workspace }}/scripts/autobahn-config:/config | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Restart Autobahn | |
| # The autobahn service container is started *before* swift-websocket is checked | |
| # out. Restarting the container after the checkout step is needed for the | |
| # container to see volumes populated from the checked out workspace. | |
| uses: docker://docker | |
| with: | |
| args: docker restart fuzzingserver | |
| - name: Test | |
| run: | | |
| swift test --enable-code-coverage | |
| - name: Convert coverage files | |
| run: | | |
| llvm-cov export -format="lcov" \ | |
| .build/debug/swift-websocketPackageTests.xctest \ | |
| -ignore-filename-regex="\/Tests\/" \ | |
| -ignore-filename-regex="\/Benchmarks\/" \ | |
| -instr-profile .build/debug/codecov/default.profdata > info.lcov | |
| - name: Upload to codecov.io | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| files: info.lcov | |
| token: ${{ secrets.CODECOV_TOKEN }} |