Skip to content

add unit tests for go server #1

add unit tests for go server

add unit tests for go server #1

Workflow file for this run

name: Go Unit Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
types:
- opened
- synchronize
- reopened
jobs:
test:
name: Run Go tests
runs-on: ubuntu-latest
defaults:
run:
working-directory: go-server
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go-server/go.mod
- name: Download dependencies
run: go mod download
- name: Run unit tests
run: go test ./...