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
72 changes: 72 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: ci

on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_call:

permissions:
contents: read

concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
web:
name: cavimg (typecheck / test / build)
runs-on: ubuntu-latest

permissions:
contents: read

steps:
- uses: actions/checkout@v6

- uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
with:
version: 10.27.0

- uses: actions/setup-node@v6
with:
node-version: "24"
package-manager-cache: false

- name: Install dependencies
run: pnpm install --frozen-lockfile --filter cavimg... --ignore-scripts

- name: Typecheck
run: pnpm --filter cavimg typecheck

- name: Test
run: pnpm --filter cavimg test

- name: Build
run: pnpm --filter cavimg build

mcp:
name: cavimg-mcp (vet / test)
runs-on: ubuntu-latest

permissions:
contents: read

steps:
- uses: actions/checkout@v6

- uses: actions/setup-go@v6
with:
go-version-file: packages/cavimg-mcp/go.mod
cache-dependency-path: packages/cavimg-mcp/go.sum

- name: Vet
working-directory: packages/cavimg-mcp
run: go vet ./...

- name: Test
working-directory: packages/cavimg-mcp
run: go test ./...
55 changes: 55 additions & 0 deletions .github/workflows/dev-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: dev-check

on:
push:
branches:
- dev
pull_request:
branches:
- dev

permissions:
contents: read

concurrency:
group: dev-check-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
verify:
name: verify
uses: ./.github/workflows/ci.yaml
permissions:
contents: read

pack:
name: publish dry-run (no registry write)
needs: verify
runs-on: ubuntu-latest

permissions:
contents: read

steps:
- uses: actions/checkout@v6

- uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
with:
version: 10.27.0

- uses: actions/setup-node@v6
with:
node-version: "24"
package-manager-cache: false

- name: Install dependencies
run: pnpm install --frozen-lockfile --filter cavimg... --ignore-scripts

- name: Build
run: pnpm --filter cavimg build

- name: Pack and inspect manifest
working-directory: packages/cavimg
run: |
echo "::notice::--dry-run packs the tarball only. It does NOT contact the registry, validate OIDC, or publish."
npm publish --dry-run --tag latest
Loading