Skip to content

Commit 2ef5770

Browse files
committed
update
1 parent 03f2207 commit 2ef5770

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/test-api.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,12 @@ jobs:
2424
go-version: stable
2525

2626
- run: |
27-
cid=$(docker run --rm -d -p 9115:9115 localapi:0.1.0)
27+
docker run --rm -d -p 9115:9115 --name localapi localapi:0.1.0
2828
sleep 4
2929
go test -v
30-
docker stop "$cid"
3130
name: run tests against container
3231
env:
3332
TEST_HOST: http://localhost:9115/probe
33+
34+
- name: stop container
35+
run: docker stop localapi

0 commit comments

Comments
 (0)