fix(server/app): 修正在 App 中服务未返回的情况下可再次调用 RestartServer 的情况 #173
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Cmd | |
on: [push, pull_request] | |
jobs: | |
test: | |
name: cmd | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macOS-latest, windows-latest] | |
go: ['1.22.x'] | |
steps: | |
- name: Set git to use LF | |
run: | | |
git config --global core.autocrlf false | |
git config --global core.eol lf | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Go ${{ matrix.go }} | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go }} | |
id: go | |
- name: Vet | |
run: | | |
cd cmd/web | |
go vet -v ./... | |
- name: Test | |
env: | |
LANG: en | |
run: | | |
cd cmd/web | |
go test -v ./... |