increased wait for port timeout #8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will build a golang project | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go | |
name: Test | |
on: | |
push: | |
branches: | |
- "*" | |
pull_request: | |
branches: | |
- "*" | |
jobs: | |
RunTests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "1.22" | |
cache-dependency-path: | | |
go.sum | |
- name: Start Todo Server | |
run: | | |
go run test_api/todo/server.go & | |
go run main.go & | |
go install github.com/bitnami/wait-for-port | |
wait-for-port 8080 | |
wait-for-port 9090 | |
go test -v ./... | |
- name: Wait for Todo Server | |
run: | | |
go install github.com/bitnami/wait-for-port | |
wait-for-port 8080 --timeout=60 | |
wait-for-port 9090 --timeout=60 | |
- name: Run Tests | |
run: | | |
go test -v ./... |