mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-06-12 18:08:54 +00:00
330de0c382
* fix(agent): disable seahorse context manager on freebsd/arm Exclude freebsd/arm from the seahorse-enabled build and route it to the unsupported stub implementation. This avoids freebsd/arm build failures caused by modernc sqlite/libc while keeping picoclaw buildable on that target. * build: bump Go version from 1.25.8 to 1.25.9 * ci: install and run govulncheck directly in PR workflow
67 lines
1.3 KiB
YAML
67 lines
1.3 KiB
YAML
name: PR
|
|
|
|
on:
|
|
pull_request: { }
|
|
|
|
jobs:
|
|
lint:
|
|
name: Linter
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v6
|
|
with:
|
|
go-version-file: go.mod
|
|
|
|
- name: Run go generate
|
|
run: go generate ./...
|
|
|
|
- name: Golangci Lint
|
|
uses: golangci/golangci-lint-action@v9
|
|
with:
|
|
version: v2.10.1
|
|
args: --build-tags=goolm,stdjson
|
|
|
|
vuln_check:
|
|
name: Security Check
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
GOFLAGS: -tags=goolm,stdjson
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v6
|
|
with:
|
|
go-version-file: go.mod
|
|
|
|
- name: Install govulncheck
|
|
run: go install golang.org/x/vuln/cmd/govulncheck@v1.1.4
|
|
|
|
- name: Run Govulncheck
|
|
run: govulncheck -C . -format text ./...
|
|
|
|
test:
|
|
name: Tests
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v6
|
|
with:
|
|
go-version-file: go.mod
|
|
|
|
- name: Run go generate
|
|
run: go generate ./...
|
|
|
|
- name: Run go test
|
|
run: go test -tags goolm,stdjson ./...
|