Skip to content

Week 1: ACP server with registry, resolver, builder, SDK + hardening … #5

Week 1: ACP server with registry, resolver, builder, SDK + hardening …

Week 1: ACP server with registry, resolver, builder, SDK + hardening … #5

Workflow file for this run

name: verify
on:
pull_request:
push:
branches: [main]
jobs:
go:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
check-latest: true
- name: go vet
run: go vet ./...
- name: go test
run: go test -race -count=1 ./...
- name: go build
run: go build ./...
static:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
check-latest: true
- name: staticcheck
run: |
go install honnef.co/go/tools/cmd/staticcheck@latest
staticcheck ./...
- name: govulncheck
run: |
go install golang.org/x/vuln/cmd/govulncheck@latest
govulncheck ./...
fuzz-smoke:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
check-latest: true
- name: resolver fuzz (10s)
run: go test -run=^$ -fuzz=FuzzKeywordResolver_Resolve -fuzztime=10s ./internal/resolver/
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- name: build image
uses: docker/build-push-action@v6
with:
context: .
push: false
tags: ninevigil-acp/acp-server:ci
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Validate docs
run: python3 scripts/check_docs.py