Skip to content

refactor: 采用 slices.Clone 代替自有的实现 #266

refactor: 采用 slices.Clone 代替自有的实现

refactor: 采用 slices.Clone 代替自有的实现 #266

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.21.x', '1.22.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:
go-version: ${{ matrix.go }}
id: go
- name: Vet
run: go vet -v ./...
- name: Test
run: go test -race -v -coverprofile='coverage.txt' -covermode=atomic ./...
- name: Upload Coverage report
uses: codecov/codecov-action@v4
with:
token: ${{secrets.CODECOV_TOKEN}}
file: ./coverage.txt