Skip to content

increased wait for port timeout #8

increased wait for port timeout

increased wait for port timeout #8

Workflow file for this run

# 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 ./...