don't remember what I fixed, but it's a little better now #9
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 Servers and Run Tests | |
run: | | |
go run test_api/todo/server.go & go run main.go & sleep 10 | |
go install github.com/bitnami/wait-for-port | |
wait-for-port 8080 --timeout=60 | |
wait-for-port 9090 --timeout=60 | |
go test -v ./... |