2929 windows_nightly_6_1_arguments_override : " --explicit-target-dependency-import-check error"
3030 windows_nightly_main_arguments_override : " --explicit-target-dependency-import-check error"
3131
32- integration-test :
33- name : Integration test
34- uses : apple/swift-nio/.github/workflows/swift_matrix.yml@main
35- with :
36- name : " Integration test"
37- matrix_linux_command : " apt-get update -yq && apt-get install -yq jq && SWIFT_OPENAPI_GENERATOR_REPO_URL=file://${GITHUB_WORKSPACE} ./scripts/run-integration-test.sh"
38- matrix_linux_nightly_main_enabled : false
39-
4032 compatibility-test :
4133 name : Compatibility test
4234 runs-on : ubuntu-latest
@@ -56,13 +48,55 @@ jobs:
5648 SWIFT_OPENAPI_COMPATIBILITY_TEST_NUM_BUILD_JOBS : 1
5749 run : swift test --filter ${SWIFT_OPENAPI_COMPATIBILITY_TEST_FILTER}
5850
51+ construct-integration-test-matrix :
52+ name : Construct integration matrix
53+ runs-on : ubuntu-latest
54+ outputs :
55+ integration-test-matrix : ' ${{ steps.generate-matrix.outputs.integration-test-matrix }}'
56+ steps :
57+ - name : Checkout repository
58+ uses : actions/checkout@v4
59+ with :
60+ persist-credentials : false
61+ - id : generate-matrix
62+ run : echo "integration-test-matrix=$(curl -s https://raw.githubusercontent.com/apple/swift-nio/main/scripts/generate_matrix.sh | bash)" >> "$GITHUB_OUTPUT"
63+ env :
64+ MATRIX_LINUX_SETUP_COMMAND : apt-get update -y && apt-get install -yq jq
65+ MATRIX_LINUX_COMMAND : SWIFT_OPENAPI_GENERATOR_REPO_URL=file://${GITHUB_WORKSPACE} ./scripts/run-integration-test.sh
66+ MATRIX_LINUX_NIGHTLY_MAIN_ENABLED : false
67+
68+ integration-test :
69+ name : Integration test
70+ needs : construct-integration-test-matrix
71+ uses : apple/swift-nio/.github/workflows/swift_test_matrix.yml@main
72+ with :
73+ name : " Integration test"
74+ matrix_string : ' ${{ needs.construct-integration-test-matrix.outputs.integration-test-matrix }}'
75+
76+ construct-example-packages-matrix :
77+ name : Construct example packages matrix
78+ runs-on : ubuntu-latest
79+ outputs :
80+ example-packages-matrix : ' ${{ steps.generate-matrix.outputs.example-packages-matrix }}'
81+ steps :
82+ - name : Checkout repository
83+ uses : actions/checkout@v4
84+ with :
85+ persist-credentials : false
86+ - id : generate-matrix
87+ run : echo "example-packages-matrix=$(curl -s https://raw.githubusercontent.com/apple/swift-nio/main/scripts/generate_matrix.sh | bash)" >> "$GITHUB_OUTPUT"
88+ env :
89+ MATRIX_LINUX_COMMAND : ./scripts/test-examples.sh
90+ MATRIX_LINUX_NIGHTLY_MAIN_ENABLED : false
91+
5992 example-packages :
6093 name : Example packages
61- uses : apple/swift-nio/.github/workflows/swift_matrix.yml@main
94+ needs : construct-example-packages-matrix
95+ uses : apple/swift-nio/.github/workflows/swift_test_matrix.yml@main
6296 with :
6397 name : " Example packages"
64- matrix_linux_command : " ./scripts/test-examples.sh "
65- matrix_linux_nightly_main_enabled : false
98+ matrix_string : ' ${{ needs.construct-example-packages-matrix.outputs.example-packages-matrix }} '
99+
66100
67101 macos-tests :
68102 name : macOS tests
0 commit comments