Skip to content

Commit 218d21d

Browse files
mmckyclaude
andcommitted
Add the State files check (translate doctor --require-state)
Runs translate doctor --require-state from action-translation v0.33.0 on every PR and on pushes to main. See QuantEcon/action-translation#370. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent f6538c8 commit 218d21d

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

‎.github/workflows/state-files.yml‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: State files
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [main]
7+
8+
jobs:
9+
state-files:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v7
13+
with:
14+
path: edition
15+
- uses: actions/checkout@v7
16+
with:
17+
repository: QuantEcon/action-translation
18+
ref: v0.33.0 # or a later release; v0.33.0 is the first with --require-state
19+
path: action-translation
20+
- uses: actions/setup-node@v4
21+
with:
22+
node-version: 24
23+
- name: Build the translate CLI
24+
working-directory: action-translation
25+
run: npm ci && npm run build:cli
26+
- name: Check the state files
27+
run: node action-translation/dist/cli/index.js doctor -t edition --require-state

0 commit comments

Comments
 (0)