mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-16 20:11:08 +00:00
61 lines
1.4 KiB
YAML
61 lines
1.4 KiB
YAML
name: test
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
concurrency:
|
|
group: test-${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
test:
|
|
name: lint-and-test
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 20
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v7
|
|
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v7
|
|
with:
|
|
node-version: 22
|
|
cache: npm
|
|
|
|
- name: Install shell test dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y fish xvfb
|
|
|
|
- name: Install deps
|
|
run: npm ci
|
|
|
|
- name: Lint
|
|
run: npm run lint
|
|
|
|
- name: Verify generated Catty tool specs
|
|
run: |
|
|
npm run generate:capability-tools
|
|
git diff --exit-code infrastructure/ai/harness/generated/cattyToolSpecs.json
|
|
|
|
- name: Verify Codex App Server schema
|
|
run: npm run check:codex-app-server-schema
|
|
|
|
- name: Test
|
|
run: npm test
|
|
|
|
- name: Test terminal decoration performance
|
|
env:
|
|
NETCATTY_TERMINAL_PERF_SHOW_WINDOW: "1"
|
|
# GitHub-hosted runners do not configure Electron's SUID sandbox helper.
|
|
run: xvfb-run -a ./node_modules/.bin/electron --no-sandbox scripts/xterm-decoration-performance.live.test.cjs
|
|
|
|
- name: Build
|
|
run: npm run build
|