Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,43 @@ name: check
on:
push:
branches: [main]
paths:
- "server/**"
- "internal/**"
- "apps/web/**"
- "packages/cli/**"
- "packages/opencode-plugin/**"
- "packages/eslint-config/**"
- "scripts/**"
- "docker-compose.dev.yml"
- "go.mod"
- "go.sum"
- "go.work"
- "go.work.sum"
- "package.json"
- "pnpm-workspace.yaml"
- "pnpm-lock.yaml"
- "Makefile"
- ".github/workflows/check.yml"
pull_request:
paths:
- "server/**"
- "internal/**"
- "apps/web/**"
- "packages/cli/**"
- "packages/opencode-plugin/**"
- "packages/eslint-config/**"
- "scripts/**"
- "docker-compose.dev.yml"
- "go.mod"
- "go.sum"
- "go.work"
- "go.work.sum"
- "package.json"
- "pnpm-workspace.yaml"
- "pnpm-lock.yaml"
- "Makefile"
- ".github/workflows/check.yml"

permissions:
contents: read
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/govulncheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,23 @@ name: govulncheck
on:
push:
branches: [main]
paths:
- "server/**"
- "internal/**"
- "go.mod"
- "go.sum"
- "go.work"
- "go.work.sum"
- ".github/workflows/govulncheck.yml"
pull_request:
paths:
- "server/**"
- "internal/**"
- "go.mod"
- "go.sum"
- "go.work"
- "go.work.sum"
- ".github/workflows/govulncheck.yml"
schedule:
- cron: "17 8 * * 1"

Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,23 @@ name: lint
on:
push:
branches: [main]
paths:
- "**/*.go"
- "go.mod"
- "go.sum"
- "go.work"
- "go.work.sum"
- ".golangci.yml"
- ".github/workflows/lint.yml"
pull_request:
paths:
- "**/*.go"
- "go.mod"
- "go.sum"
- "go.work"
- "go.work.sum"
- ".golangci.yml"
- ".github/workflows/lint.yml"
workflow_dispatch:

permissions:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ on:
paths:
- 'docs/openapi/**'
- 'redocly.yaml'
- 'server/**'
- 'server/**/*.go'
- '.github/workflows/openapi.yml'
- 'Makefile'
pull_request:
paths:
- 'docs/openapi/**'
- 'redocly.yaml'
- 'server/**'
- 'server/**/*.go'
- '.github/workflows/openapi.yml'
- 'Makefile'

Expand Down
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ SHELL := /bin/bash
PARSAR_IMAGE ?= parsar
PARSAR_IMAGE_TAG ?= dev

.PHONY: setup dev check reset-dev clean-dev paths migrate-dev sqlc-generate server web cli devgateway http-runner-once http-runner-loop dev-all smoke e2e-http-agent e2e-feishu-gateway dev-server-up dev-server-down dev-server-log bootstrap docker-build docker-build-no-cache openapi
.PHONY: setup dev dev-db check reset-dev clean-dev paths migrate-dev sqlc-generate server web cli devgateway http-runner-once http-runner-loop dev-all smoke e2e-http-agent e2e-feishu-gateway dev-server-up dev-server-down dev-server-log bootstrap docker-build docker-build-no-cache openapi

setup:
./scripts/setup.sh
Expand Down Expand Up @@ -38,9 +38,12 @@ bootstrap:
sqlc-generate:
cd server && go run github.com/sqlc-dev/sqlc/cmd/sqlc@v1.29.0 generate

dev:
dev-db:
./scripts/dev-stack.sh

# Backward-compatible alias. Prefer `make dev-db` for the DB-only dev stack.
dev: dev-db

check:
./scripts/check.sh

Expand Down
2 changes: 1 addition & 1 deletion scripts/dev-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ PY

# Pick an ephemeral Postgres port BEFORE sourcing dev-env.sh so its
# default (15432) only fills the blank — dev-all intentionally runs on a
# free port to avoid colliding with a `make dev` stack.
# free port to avoid colliding with a `make dev-db` stack.
if [[ -z "${PARSAR_POSTGRES_PORT:-}" ]]; then
PARSAR_POSTGRES_PORT="$(free_port)"
export PARSAR_POSTGRES_PORT
Expand Down
2 changes: 1 addition & 1 deletion scripts/dev-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# it wins (the `${VAR:-default}` form below only fills in the blank).
#
# Consumers:
# scripts/dev-stack.sh (make dev)
# scripts/dev-stack.sh (make dev-db; make dev is a compatibility alias)
# scripts/dev-all.sh (make dev-all)
# scripts/dev-server-up.sh (make dev-server-up)
# docker-compose.dev.yml (reads the exported PARSAR_PG_* values;
Expand Down