Skip to content

Commit 65a9c50

Browse files
committed
wip: use a service container
1 parent 24846dc commit 65a9c50

File tree

1 file changed

+24
-8
lines changed

1 file changed

+24
-8
lines changed

.github/workflows/pull_request.yml

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,30 @@ 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+
env:
49+
REGISTRY_HOST: registry
50+
REGISTRY_PORT: 5000
51+
run: |
52+
swift test
3753
3854
swift-6-language-mode:
3955
name: Swift 6 Language Mode

0 commit comments

Comments
 (0)