Skip to content

test: 更新测试用例 #8

test: 更新测试用例

test: 更新测试用例 #8

Workflow file for this run

name: Go Build and Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./backend
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.24'
cache: true
cache-dependency-path: backend/go.sum
check-latest: true
- name: Download dependencies
run: go mod download
- name: Run tests
run: go test -v ./...
- name: Build application
run: go build -o main ./cmd