Skip to content

fix: bump peerclaw-agent to v0.7.0 for Sign API compatibility #33

fix: bump peerclaw-agent to v0.7.0 for Sign API compatibility

fix: bump peerclaw-agent to v0.7.0 for Sign API compatibility #33

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.26"
- name: Download modules
run: go mod download
- name: Vet
run: go vet ./...
- name: Test
run: go test -race -coverprofile=coverage.out ./...
- name: Check coverage
run: |
COVERAGE=$(go tool cover -func=coverage.out | grep total | awk '{print substr($3, 1, length($3)-1)}')
THRESHOLD=70
echo "Coverage: ${COVERAGE}% (threshold: ${THRESHOLD}%)"
if [ "$(echo "$COVERAGE < $THRESHOLD" | bc -l)" -eq 1 ]; then
echo "::error::Coverage ${COVERAGE}% is below threshold ${THRESHOLD}%"
exit 1
fi
- name: Build
run: go build -v ./cmd/peerclaw