Skip to content

Commit

Permalink
chore: fix github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
RawanMostafa08 committed Sep 22, 2024
1 parent 775c973 commit 5370b1d
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,25 +34,22 @@ jobs:
gofmt-path: './src'
gofmt-flags: '-l -d'

pull-run-images:
pull-run-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: stable
- name: pull http server
run: docker pull rawanmostafa/httpserver:latest
- name: pull gin server
run: docker pull rawanmostafa/ginserver:latest
- name: run http server
run: docker run -d --name httpserver -p 8080:8080 rawanmostafa/httpserver:latest
run: docker run -d -p 8080:8080 rawanmostafa/httpserver:latest
- name: run gin server
run: docker run -d --name ginserver -p 8083:8083 rawanmostafa/ginserver:latest

test:
runs-on: ubuntu-latest
needs: pull-run-images
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: stable
- name: Test with the Go CLI
run: docker run -d -p 8083:8083 rawanmostafa/ginserver:latest
- name: test
run: go test -v ./pkg


0 comments on commit 5370b1d

Please sign in to comment.