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
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ jobs:
tar -xf "$archive" -C packages
done < <(find native-artifacts -type f -name '*.tar' | sort)
- run: pnpm install --frozen-lockfile
- run: pnpm build
- run: pnpm test:run
- id: npm_tag
name: Resolve shared npm tag
shell: bash
Expand Down
24 changes: 18 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Test

on:
push:
branches:
- main
paths-ignore:
- '**/README.md'
- 'docs/**'
Expand Down Expand Up @@ -31,18 +33,28 @@ jobs:
- run: pnpm lint
- run: pnpm typecheck
- run: pnpm build
- run: pnpm test:run
- run: pnpm --filter skilld-protocol check:v1
- run: pnpm --filter skilld-protocol publint
- run: pnpm --filter skilld-protocol attw
- run: pnpm --filter skilld-harness publint
- run: pnpm --filter skilld-harness attw
- run: pnpm test:js
- name: Rust tests
if: github.event_name == 'push'
run: cargo test --workspace
- name: Protocol v1 drift check
if: github.event_name == 'push'
run: pnpm --filter skilld-protocol check:v1
- name: Package health checks
if: github.event_name == 'push'
run: |
pnpm --filter skilld-protocol publint
pnpm --filter skilld-protocol attw
pnpm --filter skilld-harness publint
pnpm --filter skilld-harness attw
- name: Pack root CLI
if: github.event_name == 'push'
run: |
mkdir -p artifacts
pnpm pack --pack-destination artifacts

native-host:
if: github.event_name == 'push'
strategy:
fail-fast: false
matrix:
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
"lint:fix": "eslint . --fix && cargo fmt --all",
"typecheck": "pnpm --filter skilld-protocol typecheck && pnpm --filter skilld-harness typecheck",
"test": "vitest",
"test:run": "vitest run tests/loader && pnpm --filter skilld-protocol test:run && pnpm --filter skilld-harness test:run && cargo test --workspace",
"test:js": "vitest run tests/loader && pnpm --filter skilld-protocol test:run && pnpm --filter skilld-harness test:run",
"test:run": "pnpm test:js && cargo test --workspace",
"prepack": "pnpm test:loader",
"test:loader": "vitest run --config vitest.config.mjs"
},
Expand Down