Skip to content

typo: 修正 Benchmark 拼写错误 #66

typo: 修正 Benchmark 拼写错误

typo: 修正 Benchmark 拼写错误 #66

Workflow file for this run

name: Go
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.25.x"]
steps:
- 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:
stable: '!contains(${{ matrix.go }}, "beta") && !contains(${{ matrix.go }}, "rc")'
go-version: ${{ matrix.go }}
id: go
- name: Vet
run: go vet -v ./...
- name: Test
run: go test -v -coverprofile='coverage.txt' -covermode=atomic ./...
- name: Upload Coverage report
uses: codecov/codecov-action@v5
with:
files: ./coverage.txt
token: ${{ secrets.CODECOV_TOKEN }}