Skip to content

implement Cloner interface to provide independent deep copies #4

implement Cloner interface to provide independent deep copies

implement Cloner interface to provide independent deep copies #4

Workflow file for this run

---
name: Test
on:
push:
branches: [ master ]
paths:
- '**/go.mod'
- '**/go.sum'
- '**/*.go'
pull_request:
branches: [ master ]
paths:
- '**/go.mod'
- '**/go.sum'
- '**/*.go'
jobs:
test-library:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Test
run: go test -v ./...
test-tools:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'tools/go.mod'
- name: Build
run: cd tools ; go build -v ./...
- name: Test
run: cd tools ; go test -v ./...
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Lint (Library)
uses: golangci/golangci-lint-action@v3
with:
version: v1.56.0
- name: Lint (Tools)
uses: golangci/golangci-lint-action@v3
with:
version: v1.56.0
working-directory: tools