Skip to content

Commit

Permalink
ci: add document lint changed
Browse files Browse the repository at this point in the history
  • Loading branch information
SoonIter committed Jul 16, 2024
1 parent fa0e344 commit ee5b944
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
name: Check Source Changed
outputs:
changed: ${{ steps.filter.outputs.changed == 'true' }}
document_changed: ${{ steps.document_filter.outputs.changed == 'true' }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
Expand All @@ -46,6 +47,13 @@ jobs:
- "!**/*.md"
- "!**/*.mdx"
- "!website/**"
- uses: dorny/paths-filter@v3
id: document_filter
with:
predicate-quantifier: "every"
filters: |
changed:
- "website/**"
test-linux:
name: Test Linux
Expand Down Expand Up @@ -193,6 +201,7 @@ jobs:
run: |
cd website
pnpm install
npx @biomejs/biome check --diagnostic-level=warn
pnpm run check:ci
rust_changes:
Expand Down
2 changes: 2 additions & 0 deletions website/theme/components/Benchmark/ProgressBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { useState } from 'react';
import styles from './ProgressBar.module.scss';
import { useInView } from 'react-intersection-observer';

console.log(111111);

export function formatTime(time: number, totalTime: number) {
if (totalTime < 1000) {
return `${time.toFixed(0)}ms`;
Expand Down

0 comments on commit ee5b944

Please sign in to comment.