Skip to content

fix: bound agent HTTP timeouts and report real CPU usage #1

fix: bound agent HTTP timeouts and report real CPU usage

fix: bound agent HTTP timeouts and report real CPU usage #1

Workflow file for this run

name: ci
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
jobs:
go:
runs-on: ubuntu-latest
steps:
- name: checkout lattice-node-agent
uses: actions/checkout@v4
with:
path: lattice-node-agent
- name: checkout lattice-sdk
uses: actions/checkout@v4
with:
repository: LatticeNet/lattice-sdk
path: lattice-sdk
- uses: actions/setup-go@v5
with:
go-version: '1.26.x'
check-latest: true
- name: create workspace
run: go work init ./lattice-sdk ./lattice-node-agent
- name: gofmt
working-directory: lattice-node-agent
run: test -z "$(gofmt -l .)" || (gofmt -l . && exit 1)
- name: vet
working-directory: lattice-node-agent
run: go vet ./...
- name: test
working-directory: lattice-node-agent
run: go test -race -cover ./...
- name: gosec
run: |
go install github.com/securego/gosec/v2/cmd/gosec@latest
gosec ./lattice-node-agent/...
- name: govulncheck
working-directory: lattice-node-agent
run: |
go install golang.org/x/vuln/cmd/govulncheck@latest
govulncheck ./...