Get NIOEmbedded clean under strict concurrency #1109
Workflow file for this run
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: PR | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize] | |
jobs: | |
soundness: | |
name: Soundness | |
uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main | |
with: | |
license_header_check_project_name: "SwiftNIO" | |
unit-tests: | |
name: Unit tests | |
# Workaround https://github.com/nektos/act/issues/1875 | |
uses: apple/swift-nio/.github/workflows/unit_tests.yml@main | |
with: | |
linux_5_9_arguments_override: "-Xswiftc -warnings-as-errors --explicit-target-dependency-import-check error" | |
linux_5_10_arguments_override: "-Xswiftc -warnings-as-errors --explicit-target-dependency-import-check error" | |
linux_6_0_arguments_override: "-Xswiftc -warnings-as-errors --explicit-target-dependency-import-check error" | |
linux_nightly_6_0_arguments_override: "-Xswiftc -warnings-as-errors --explicit-target-dependency-import-check error" | |
linux_nightly_main_arguments_override: "--explicit-target-dependency-import-check error" | |
benchmarks: | |
name: Benchmarks | |
# Workaround https://github.com/nektos/act/issues/1875 | |
uses: apple/swift-nio/.github/workflows/benchmarks.yml@main | |
with: | |
benchmark_package_path: "Benchmarks" | |
cxx-interop: | |
name: Cxx interop | |
# Workaround https://github.com/nektos/act/issues/1875 | |
uses: apple/swift-nio/.github/workflows/cxx_interop.yml@main | |
construct-integration-test-matrix: | |
name: Construct integration test matrix | |
runs-on: ubuntu-latest | |
outputs: | |
integration-test-matrix: '${{ steps.generate-matrix.outputs.integration-test-matrix }}' | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- id: generate-matrix | |
run: echo "integration-test-matrix=$(curl -s https://raw.githubusercontent.com/apple/swift-nio/main/scripts/generate_matrix.sh | bash)" >> "$GITHUB_OUTPUT" | |
env: | |
MATRIX_LINUX_SETUP_COMMAND: "apt-get update -y -q && apt-get install -y -q lsof dnsutils netcat-openbsd net-tools curl jq" | |
MATRIX_LINUX_COMMAND: "./scripts/integration_tests.sh" | |
integration-tests: | |
name: Integration tests | |
needs: construct-integration-test-matrix | |
# Workaround https://github.com/nektos/act/issues/1875 | |
uses: apple/swift-nio/.github/workflows/swift_test_matrix.yml@main | |
with: | |
name: "Integration tests" | |
matrix_string: '${{ needs.construct-integration-test-matrix.outputs.integration-test-matrix }}' | |
vsock-tests: | |
name: Vsock tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Load vsock_loopback kernel module | |
run: sudo modprobe vsock_loopback | |
- name: Build package tests | |
run: swift build --build-tests | |
- name: Run Vsock tests | |
shell: bash # explicitly choose bash, which ensures -o pipefail | |
run: swift test --filter "(?i)vsock" | tee test.out | |
- name: Check for skipped tests | |
run: test -r test.out && ! grep -i skipped test.out |