Skip to content

Commit 45a50d0

Browse files
mikepitreclaude
andcommitted
ci(repo): run the verify-clerk-expo unit tests and typecheck
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent f581e6f commit 45a50d0

1 file changed

Lines changed: 56 additions & 0 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,62 @@ jobs:
104104
pnpm changeset status --since=origin/main;
105105
fi
106106
107+
verify-skill:
108+
needs: [check-permissions]
109+
name: Verify Skill Tests
110+
runs-on: 'blacksmith-8vcpu-ubuntu-2204'
111+
defaults:
112+
run:
113+
shell: bash
114+
timeout-minutes: ${{ vars.TIMEOUT_MINUTES_NORMAL && fromJSON(vars.TIMEOUT_MINUTES_NORMAL) || 5 }}
115+
116+
env:
117+
SKILL: .claude/skills/verify-clerk-expo
118+
# Every path the skill's unit tests read, so a change that would break one of them runs them.
119+
WATCHED: >-
120+
.claude/skills/verify-clerk-expo
121+
.github/workflows/ci.yml
122+
integration/templates/expo-native
123+
packages/expo
124+
packages/expo-biometrics
125+
packages/expo-google-signin
126+
127+
steps:
128+
- name: Checkout Repo
129+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
130+
with:
131+
persist-credentials: false
132+
fetch-depth: 2 # The pull request merge commit and its parents, to see what the PR changes
133+
fetch-tags: false
134+
show-progress: false
135+
136+
- name: Check whether the skill changed
137+
id: changed
138+
env:
139+
EVENT: ${{ github.event_name }}
140+
run: |
141+
if [ "$EVENT" != "pull_request" ] || ! git diff --quiet HEAD^1 HEAD -- $WATCHED; then
142+
echo "skill=true" >> "$GITHUB_OUTPUT"
143+
fi
144+
145+
- name: Setup Node
146+
if: steps.changed.outputs.skill == 'true'
147+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
148+
with:
149+
node-version: 24.15.0
150+
151+
- name: Install the skill's own dependencies
152+
if: steps.changed.outputs.skill == 'true'
153+
run: npm ci --prefix "$SKILL"
154+
155+
- name: Run the skill's unit tests, which include the check of the copied core against its manifest
156+
if: steps.changed.outputs.skill == 'true'
157+
run: npm test --prefix "$SKILL"
158+
159+
- name: Typecheck the skill
160+
if: steps.changed.outputs.skill == 'true'
161+
run: npm run typecheck --prefix "$SKILL"
162+
107163
build-packages:
108164
needs: [check-permissions]
109165
name: Build Packages

0 commit comments

Comments
 (0)