Skip to content

Commit 713927e

Browse files
committed
wip: use a service container
1 parent 04228d7 commit 713927e

File tree

1 file changed

+21
-8
lines changed

1 file changed

+21
-8
lines changed

.github/workflows/pull_request.yml

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,27 @@ jobs:
2626

2727
integration-tests:
2828
name: Integration tests
29-
uses: apple/swift-nio/.github/workflows/swift_matrix.yml@main
30-
with:
31-
name: "Integration tests"
32-
matrix_linux_command: "./scripts/run-integration-tests.sh"
33-
matrix_linux_5_8_enabled: false
34-
matrix_linux_5_9_enabled: false
35-
matrix_linux_5_10_enabled: false
36-
matrix_linux_nightly_main_enabled: false
29+
runs-on: ubuntu-latest
30+
services:
31+
registry:
32+
image: registry:2
33+
ports:
34+
- 5000:5000
35+
container:
36+
image: swift:6.0-noble
37+
steps:
38+
- name: Checkout repository
39+
uses: actions/checkout@v4
40+
with:
41+
persist-credentials: false
42+
43+
- name: Mark the workspace as safe
44+
# https://github.com/actions/checkout/issues/766
45+
run: git config --global --add safe.directory ${GITHUB_WORKSPACE}
46+
47+
- name: Run test job
48+
run: |
49+
REGISTRY_HOST=registry REGISTRY_PORT=5000 swift test
3750
3851
swift-6-language-mode:
3952
name: Swift 6 Language Mode

0 commit comments

Comments
 (0)