mirror of
https://github.com/apple/swift-nio
synced 2026-11-24 04:37:54 +00:00
# Motivation We want to check how our packages perform in Swift 6 language mode. # Modification This PR adds a new reusable workflow that sets the tools version to Swift 6 and then builds with warnings as errors enabled. Additionally, I did a bit of cleanup for the workflow names to hopefully make them look nice in every GH Action UI. # Result We now get a feeling for our Swift 6 language mode compatibility.
44 lines
1.6 KiB
YAML
44 lines
1.6 KiB
YAML
name: PR
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, reopened, synchronize]
|
|
|
|
jobs:
|
|
soundness:
|
|
name: Soundness
|
|
uses: ./.github/workflows/soundness.yml
|
|
with:
|
|
license_header_check_project_name: "SwiftNIO"
|
|
|
|
unit-tests:
|
|
name: Unit tests
|
|
uses: ./.github/workflows/unit_tests.yml
|
|
with:
|
|
linux_5_8_arguments_override: "-Xswiftc -warnings-as-errors --explicit-target-dependency-import-check error"
|
|
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_nightly_6_0_arguments_override: "--explicit-target-dependency-import-check error"
|
|
linux_nightly_main_arguments_override: "--explicit-target-dependency-import-check error"
|
|
|
|
benchmarks:
|
|
name: Benchmarks
|
|
uses: ./.github/workflows/benchmarks.yml
|
|
with:
|
|
benchmark_package_path: "Benchmarks"
|
|
|
|
cxx-interop:
|
|
name: Cxx interop
|
|
uses: ./.github/workflows/cxx_interop.yml
|
|
|
|
integration-tests:
|
|
name: Integration Tests
|
|
uses: ./.github/workflows/swift_matrix.yml
|
|
with:
|
|
name: "Integration tests"
|
|
matrix_linux_command: "apt-get update -y -q && apt-get install -y -q lsof dnsutils netcat-openbsd net-tools curl jq && ./scripts/integration_tests.sh"
|
|
|
|
swift-6-language-mode:
|
|
name: Swift 6 Language Mode
|
|
uses: ./.github/workflows/swift_6_language_mode.yml
|