Skip to content

refactor: move struct definition into shamir package #9

refactor: move struct definition into shamir package

refactor: move struct definition into shamir package #9

Workflow file for this run

---
name: Audit
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.21"
- name: Verify dependencies
run: go mod verify
- name: Build
run: go build -v ./...
gofmt:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.21"
- name: Run gofmt
run: if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then exit 1; fi
govet:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.21"
- name: Run go vet
run: go vet ./...
staticcheck:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.21"
- name: Install staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest
- name: Run staticcheck
run: |
staticcheck ./...
golangci-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.21"
- name: Install golangci-lint
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
- name: Run golangci-lint
run: |
golangci-lint run
gotest:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.21"
- name: Run tests
run: |
go test -coverprofile cover.out -race -vet=off -v ./...
go tool cover -func=cover.out