fix(test): update builtin skills count from 3 to 4 (#1126)

* fix(test): update builtin skills count from 3 to 4 (dev-browser added)

* chore(ci): add block-master-pr workflow

---------

Co-authored-by: justsisyphus <justsisyphus@users.noreply.github.com>
This commit is contained in:
justsisyphus
2026-01-26 11:29:28 +09:00
committed by GitHub
parent aead4aebd2
commit 892b245779
2 changed files with 23 additions and 4 deletions

View File

@@ -4,13 +4,32 @@ on:
push:
branches: [master, dev]
pull_request:
branches: [dev]
branches: [master, dev]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
# Block PRs targeting master branch
block-master-pr:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- name: Check PR target branch
run: |
if [ "${{ github.base_ref }}" = "master" ]; then
echo "::error::PRs to master branch are not allowed. Please target the 'dev' branch instead."
echo ""
echo "PULL REQUESTS TO MASTER ARE BLOCKED"
echo ""
echo "All PRs must target the 'dev' branch."
echo "Please close this PR and create a new one targeting 'dev'."
exit 1
else
echo "PR targets '${{ github.base_ref }}' branch - OK"
fi
test:
runs-on: ubuntu-latest
steps:

View File

@@ -75,7 +75,7 @@ describe("createBuiltinSkills", () => {
}
})
test("returns exactly 3 skills regardless of provider", () => {
test("returns exactly 4 skills regardless of provider", () => {
// #given
// #when
@@ -83,7 +83,7 @@ describe("createBuiltinSkills", () => {
const agentBrowserSkills = createBuiltinSkills({ browserProvider: "agent-browser" })
// #then
expect(defaultSkills).toHaveLength(3)
expect(agentBrowserSkills).toHaveLength(3)
expect(defaultSkills).toHaveLength(4)
expect(agentBrowserSkills).toHaveLength(4)
})
})