-
Notifications
You must be signed in to change notification settings - Fork 2
fix: handle tiny scientific notation #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
8e9aed1
9642a11
80adb23
1d4fa3e
1fbeb79
54bd664
ebc4665
3c72fe0
28738b9
c572be5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,117 +1,8 @@ | ||
| name: CI | ||
| name: ✅ test | ||
|
|
||
| on: | ||
| push: | ||
| branches: [master] | ||
| pull_request: | ||
| branches: [master] | ||
| on: [push, pull_request] | ||
|
|
||
| jobs: | ||
| setup: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: checkout | ||
| uses: actions/checkout@master | ||
|
|
||
| - uses: actions/setup-node@v1 | ||
| with: | ||
| node-version: '12' | ||
|
|
||
| - name: cache package-lock.json | ||
| uses: actions/cache@v2 | ||
| with: | ||
| path: package-temp-dir | ||
| key: lock-${{ github.sha }} | ||
|
|
||
| - name: create package-lock.json | ||
| run: npm i --package-lock-only | ||
|
|
||
| - name: hack for singe file | ||
| run: | | ||
| if [ ! -d "package-temp-dir" ]; then | ||
| mkdir package-temp-dir | ||
| fi | ||
| cp package-lock.json package-temp-dir | ||
|
|
||
| - name: cache node_modules | ||
| id: node_modules_cache_id | ||
| uses: actions/cache@v2 | ||
| with: | ||
| path: node_modules | ||
| key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }} | ||
|
|
||
| - name: install | ||
| if: steps.node_modules_cache_id.outputs.cache-hit != 'true' | ||
| run: npm ci | ||
|
|
||
| lint: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: checkout | ||
| uses: actions/checkout@master | ||
|
|
||
| - name: restore cache from package-lock.json | ||
| uses: actions/cache@v2 | ||
| with: | ||
| path: package-temp-dir | ||
| key: lock-${{ github.sha }} | ||
|
|
||
| - name: restore cache from node_modules | ||
| uses: actions/cache@v2 | ||
| with: | ||
| path: node_modules | ||
| key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }} | ||
|
|
||
| - name: lint | ||
| run: npm run lint | ||
|
|
||
| - name: ts check | ||
| run: npm run lint:tsc | ||
|
|
||
| needs: setup | ||
|
|
||
| compile: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: checkout | ||
| uses: actions/checkout@master | ||
|
|
||
| - name: restore cache from package-lock.json | ||
| uses: actions/cache@v2 | ||
| with: | ||
| path: package-temp-dir | ||
| key: lock-${{ github.sha }} | ||
|
|
||
| - name: restore cache from node_modules | ||
| uses: actions/cache@v2 | ||
| with: | ||
| path: node_modules | ||
| key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }} | ||
|
|
||
| - name: compile | ||
| run: npm run compile | ||
|
|
||
| needs: setup | ||
|
|
||
| coverage: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: checkout | ||
| uses: actions/checkout@master | ||
|
|
||
| - name: restore cache from package-lock.json | ||
| uses: actions/cache@v2 | ||
| with: | ||
| path: package-temp-dir | ||
| key: lock-${{ github.sha }} | ||
|
|
||
| - name: restore cache from node_modules | ||
| uses: actions/cache@v2 | ||
| with: | ||
| path: node_modules | ||
| key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }} | ||
|
|
||
| - name: coverage | ||
| run: npm test -- --coverage && bash <(curl -s https://codecov.io/bash) | ||
|
|
||
| needs: setup | ||
| test: | ||
| uses: react-component/rc-test/.github/workflows/test.yml@main | ||
| secrets: inherit | ||
|
Comment on lines
+7
to
+8
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: git ls-files | grep -E "\.github/workflows"Repository: react-component/mini-decimal Length of output: 128 🏁 Script executed: cat -n .github/workflows/main.ymlRepository: react-component/mini-decimal Length of output: 268 不要把继承 secrets 的复用工作流绑定到 Line 7 引用的是外部仓库的 reusable workflow,Line 8 又继承了全部 secrets。 建议修改- uses: react-component/rc-test/.github/workflows/test.yml@main
+ uses: react-component/rc-test/.github/workflows/test.yml@<pinned-commit-sha>🤖 Prompt for AI Agents |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,9 +28,11 @@ yarn.lock | |
| /es/ | ||
| package-lock.json | ||
| .doc | ||
| .dumi | ||
| dist | ||
|
|
||
| # umi | ||
| .umi | ||
| .umi-production | ||
| .umi-test | ||
| .env.local | ||
| .env.local | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: react-component/mini-decimal
Length of output: 1817
🏁 Script executed:
Repository: react-component/mini-decimal
Length of output: 308
🏁 Script executed:
Repository: react-component/mini-decimal
Length of output: 3224
🏁 Script executed:
Repository: react-component/mini-decimal
Length of output: 161
需要恢复 workflow 的分支过滤条件。
Line 3 将触发器改成了无条件的
on: [push, pull_request],而原配置在push和pull_request上都限制了branches: [master]。这扩大了 CI 触发范围,与 PR 目标中的"保持现有行为"不符。请将分支过滤条件恢复:🤖 Prompt for AI Agents