Skip to content

Commit 98c9395

Browse files
committed
wip: parameterise
1 parent f133cb7 commit 98c9395

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

.github/workflows/endtoend_tests.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name: End to end tests
22

33
on:
44
workflow_call:
5-
# inputs:
6-
# example:
7-
# required: true
8-
# type: string
5+
inputs:
6+
example:
7+
required: true
8+
type: string
99

1010
jobs:
1111
endtoend-tests:
@@ -16,11 +16,6 @@ jobs:
1616
image: registry:2
1717
ports:
1818
- 5000:5000
19-
strategy:
20-
matrix:
21-
example:
22-
- Examples/HelloWorldVapor
23-
- Examples/HelloWorldHummingbird
2419
steps:
2520
- name: Checkout repository
2621
uses: actions/checkout@v4
@@ -39,10 +34,10 @@ jobs:
3934
4035
- name: Build the example
4136
run: |
42-
sed -i'.bak' -e "/swift-container-plugin/ s@(url:.*),@(path: \"$PWD\"),@" ${{ matrix.example }}/Package.swift # Use plugin from this checkout
43-
cat ${{ matrix.example }}/Package.swift
37+
sed -i'.bak' -e "/swift-container-plugin/ s@(url:.*),@(path: \"$PWD\"),@" ${{ example }}/Package.swift # Use plugin from this checkout
38+
cat ${{ example }}/Package.swift
4439
swift package \
45-
--package-path ${{ matrix.example }} \
40+
--package-path ${{ example }} \
4641
--swift-sdk x86_64-swift-linux-musl \
4742
--allow-network-connections all \
4843
build-container-image \

.github/workflows/pull_request.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,14 @@ jobs:
5353
5454
endtoend-tests:
5555
name: End to end tests
56+
strategy:
57+
matrix:
58+
example:
59+
- Examples/HelloWorldVapor
60+
- Examples/HelloWorldHummingbird
5661
uses: ./.github/workflows/endtoend_tests.yml
62+
with:
63+
example: ${{ matrix.example }}
5764

5865
swift-6-language-mode:
5966
name: Swift 6 Language Mode

0 commit comments

Comments
 (0)