29
29
windows_nightly_6_1_arguments_override : " --explicit-target-dependency-import-check error"
30
30
windows_nightly_main_arguments_override : " --explicit-target-dependency-import-check error"
31
31
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
-
40
32
compatibility-test :
41
33
name : Compatibility test
42
34
runs-on : ubuntu-latest
@@ -56,13 +48,56 @@ jobs:
56
48
SWIFT_OPENAPI_COMPATIBILITY_TEST_NUM_BUILD_JOBS : 1
57
49
run : swift test --filter ${SWIFT_OPENAPI_COMPATIBILITY_TEST_FILTER}
58
50
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 && git config --global --add safe.directory /swift-openapi-generator/.git && git config --global --add safe.directory /swift-openapi-generator
65
+ MATRIX_LINUX_COMMAND : SWIFT_OPENAPI_GENERATOR_REPO_URL=file://${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_SETUP_COMMAND : git config --global --add safe.directory /swift-openapi-generator
90
+ MATRIX_LINUX_COMMAND : ./scripts/test-examples.sh
91
+ MATRIX_LINUX_NIGHTLY_MAIN_ENABLED : false
92
+
59
93
example-packages :
60
94
name : Example packages
61
- uses : apple/swift-nio/.github/workflows/swift_matrix.yml@main
95
+ needs : construct-example-packages-matrix
96
+ uses : apple/swift-nio/.github/workflows/swift_test_matrix.yml@main
62
97
with :
63
98
name : " Example packages"
64
- matrix_linux_command : " ./scripts/test-examples.sh "
65
- matrix_linux_nightly_main_enabled : false
99
+ matrix_string : ' ${{ needs.construct-example-packages-matrix.outputs.example-packages-matrix }} '
100
+
66
101
67
102
macos-tests :
68
103
name : macOS tests
0 commit comments