-
Notifications
You must be signed in to change notification settings - Fork 8
50 lines (42 loc) · 1.52 KB
/
pull_request.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: PR
on:
pull_request:
types: [opened, reopened, synchronize]
jobs:
endtoend-tests:
name: End to end tests
runs-on: ubuntu-latest
services:
registry:
image: registry:2
ports:
- 5000:5000
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Mark the workspace as safe
# https://github.com/actions/checkout/issues/766
run: git config --global --add safe.directory ${GITHUB_WORKSPACE}
- name: Test the registry
run: |
curl -v localhost:5000/v2/
- name: Push something
run: |
swift run containertool --repository localhost:5000/vapor Package.swift --from swift:slim
- name: Build the example
run: |
cd Examples/HelloWorldHummingbird
swift package --allow-network-connections all \
build-container-image \
--repository localhost:5000/hummingbird \
--from swift:slim \
--static-swift-stdlib
- name: Run the example
run: |
uname -a
docker run -p 8080:8080 localhost:5000/hummingbird
- name: Check that the service is running
run: |
curl localhost:8080