Skip to content

refactor code

refactor code #512

Workflow file for this run

name: TestUnit

Check failure on line 1 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test.yml

Invalid workflow file

you may only define one of `paths` and `paths-ignore` for a single event
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