Skip to content

(feat)add sociality ut file #39

(feat)add sociality ut file

(feat)add sociality ut file #39

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: Go 1.20
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Build Api
run: go build -v ./server/service/api/
- name: Test Api
run: go test -v ./server/service/api/
- name: Build Chat
run: go build -v ./server/service/chat/
- name: Test Chat
run: go test -v ./server/service/chat/
- name: Test Chat_Bench
run: cd ./server/service/chat/dao/ && go test -v -bench=. -benchmem
- name: Build Interaction
run: go build -v ./server/service/interaction/
- name: Test Interaction
run: go test -v ./server/service/interaction/
- name: Test Interaction_Bench
run: cd ./server/service/interaction/dao/ && go test -v -bench=. -benchmem
- name: Build Sociality
run: go build -v ./server/service/sociality/
- name: Test Sociality
run: go test -v ./server/service/sociality/
- name: Test Sociality_Bench
run: cd ./server/service/sociality/dao/ && go test -v -bench=. -benchmem
- name: Build User
run: go build -v ./server/service/user/
- name: Test User
run: go test -v ./server/service/user/
- name: Test User_Bench
run: cd ./server/service/user/dao/ && go test -v -bench=. -benchmem
- name: Build Video
run: go build -v ./server/service/video/
- name: Test Video
run: go test -v ./server/service/video/
- name: Test Video_Bench
run: cd ./server/service/video/dao/ && go test -v -bench=. -benchmem