Skip to content

Commit 64337df

Browse files
committed
test passing an array
1 parent cce5208 commit 64337df

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/examples_matrix.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ on:
77
type: string
88
description: "The name of the workflow used for the concurrency group."
99
required: true
10+
examples:
11+
type: string
12+
description: "The examples to run."
13+
required: true
14+
matrix_linux_command_override:
15+
type: string
16+
description: "The command of the current Swift version linux matrix job to execute."
1017
matrix_linux_command:
1118
type: string
1219
description: "The command of the current Swift version linux matrix job to execute."
@@ -46,7 +53,9 @@ jobs:
4653
strategy:
4754
fail-fast: false
4855
matrix:
49-
examples : [ "HelloWorld", "APIGateway" ]
56+
# This should be passed as an argument in input. Can we pass arrays as argument ?
57+
# examples : [ "HelloWorld", "APIGateway" ]
58+
examples: ${{ inputs.examples }}
5059
# We are specifying only the major and minor of the docker images to automatically pick up the latest patch release
5160
swift:
5261
- image: ${{ inputs.matrix_linux_nightly_6_0_container_image }}

.github/workflows/pull_request.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ jobs:
2828
name: Integration Tests
2929
uses: ./.github/workflows/examples_matrix.yml
3030
with:
31+
# We should pass the list of examples here, but we can't pass an array as argument
32+
examples: [ "HelloWorld", "APIGateway" ]
3133
name: "Integration tests"
3234
matrix_linux_command: "LAMBDA_USE_LOCAL_DEPS=../.. swift build"
3335

0 commit comments

Comments
 (0)