Skip to content

fix(watch): 修正 windows 下无法正确启动新进程的问题 #123

fix(watch): 修正 windows 下无法正确启动新进程的问题

fix(watch): 修正 windows 下无法正确启动新进程的问题 #123

Workflow file for this run

name: Test
on: [push, pull_request]
jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
go: ['1.23.x', '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
- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
id: go
- name: Vet
run: go vet -v ./...
- name: Test
run: go test -v -coverprofile='coverage.txt' -covermode=atomic ./...
- name: Test cmd
run: |
cd cmd/gobuild
go test -v ./...
- name: Upload Coverage report
uses: codecov/codecov-action@v4
with:
token: ${{secrets.CODECOV_TOKEN}}
file: ./coverage.txt