Skip to content

Commit 9689036

Browse files
chore: fix github workflow
1 parent 775c973 commit 9689036

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

.github/workflows/main.yaml

+9-12
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,19 @@ jobs:
3737
pull-run-images:
3838
runs-on: ubuntu-latest
3939
steps:
40+
- uses: actions/checkout@v4
41+
- uses: actions/setup-go@v5
42+
with:
43+
go-version: stable
4044
- name: pull http server
4145
run: docker pull rawanmostafa/httpserver:latest
4246
- name: pull gin server
4347
run: docker pull rawanmostafa/ginserver:latest
4448
- name: run http server
45-
run: docker run -d --name httpserver -p 8080:8080 rawanmostafa/httpserver:latest
49+
run: docker run -d -p 8080:8080 rawanmostafa/httpserver:latest
4650
- name: run gin server
47-
run: docker run -d --name ginserver -p 8083:8083 rawanmostafa/ginserver:latest
48-
49-
test:
50-
runs-on: ubuntu-latest
51-
needs: pull-run-images
52-
steps:
53-
- uses: actions/checkout@v4
54-
- uses: actions/setup-go@v5
55-
with:
56-
go-version: stable
57-
- name: Test with the Go CLI
51+
run: docker run -d -p 8083:8083 rawanmostafa/ginserver:latest
52+
- name: test
5853
run: go test -v ./pkg
54+
55+

0 commit comments

Comments
 (0)