Files
MRCC/.github/workflows/ci.yml
T
xyou 9500c4c80a
CI / Go Backend (push) Canceled after 0s
FIRST
2026-08-07 23:39:47 +08:00

34 lines
552 B
YAML

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
backend:
name: Go Backend
runs-on: ubuntu-latest
defaults:
run:
working-directory: server
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22"
- name: Download dependencies
run: go mod download
- name: Build
run: go build ./cmd/...
- name: Vet
run: go vet ./...
- name: Test
run: go test ./... -race -cover