Skip to content

改进版本有效性检查,确保接受有前缀的版本格式 #6

改进版本有效性检查,确保接受有前缀的版本格式

改进版本有效性检查,确保接受有前缀的版本格式 #6

Workflow file for this run

name: Go Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch: # 允许手动触发
jobs:
test:
name: Run Tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
check-latest: true
- name: Test
run: go test -v ./...
- name: Test Coverage
run: |
go test -coverprofile=coverage.out ./...
go tool cover -func=coverage.out