fix lint workflow #510
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: TestUnit | ||
on: | ||
pull_request: | ||
paths: | ||
- '**/*.go' | ||
- '**/*.mod' | ||
paths-ignore: | ||
- '**/*' # 忽略其他所有文件 | ||
jobs: | ||
test-unit: | ||
name: Test Units | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v3 | ||
- name: Setup go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: '^1.19' # The Go version to download (if necessary) and use. | ||
- run: make test |