ci(backend): 调整 embed server

This commit is contained in:
Forest
2025-12-20 16:44:25 +08:00
parent 1e1f3c0c74
commit aa89777dda
5 changed files with 46 additions and 13 deletions

View File

@@ -14,10 +14,11 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
go-version-file: backend/go.mod
check-latest: true
cache: true
- name: Run tests
working-directory: backend
run: go test ./...
golangci-lint:
@@ -26,11 +27,12 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
go-version-file: backend/go.mod
check-latest: true
cache: true
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
uses: golangci/golangci-lint-action@v9
with:
version: latest
version: v2.7
args: --timeout=5m
working-directory: backend