Skip to content

Commit

Permalink
ci: add document lint changed check (#7188)
Browse files Browse the repository at this point in the history
ci: add document lint changed
  • Loading branch information
SoonIter authored Jul 16, 2024
1 parent 271f63b commit 58e6453
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 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 @@ -183,6 +191,7 @@ jobs:
name: Lint and format website
runs-on: ubuntu-latest
needs: [check-changed]
if: ${{ needs.check-changed.outputs.document_changed == 'true' }}
steps:
- uses: actions/checkout@v4

Expand All @@ -193,6 +202,7 @@ jobs:
run: |
cd website
pnpm install
npx @biomejs/biome check --diagnostic-level=warn
pnpm run check:ci
rust_changes:
Expand Down
2 changes: 1 addition & 1 deletion website/theme/components/Benchmark/ProgressBar.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { motion } from 'framer-motion';
import { useState } from 'react';
import styles from './ProgressBar.module.scss';
import { useInView } from 'react-intersection-observer';
import styles from './ProgressBar.module.scss';

export function formatTime(time: number, totalTime: number) {
if (totalTime < 1000) {
Expand Down

2 comments on commit 58e6453

@rspack-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 Benchmark detail: Open

Name Base (2024-07-16 8645c8d) Current Change
10000_development-mode + exec 2.25 s ± 17 ms 2.25 s ± 31 ms +0.14 %
10000_development-mode_hmr + exec 698 ms ± 4.7 ms 699 ms ± 8.8 ms +0.21 %
10000_production-mode + exec 2.8 s ± 34 ms 2.87 s ± 32 ms +2.47 %
arco-pro_development-mode + exec 1.88 s ± 72 ms 1.88 s ± 77 ms -0.12 %
arco-pro_development-mode_hmr + exec 434 ms ± 3.2 ms 434 ms ± 1.6 ms -0.06 %
arco-pro_production-mode + exec 3.44 s ± 90 ms 3.48 s ± 65 ms +1.03 %
threejs_development-mode_10x + exec 1.75 s ± 14 ms 1.77 s ± 14 ms +1.02 %
threejs_development-mode_10x_hmr + exec 860 ms ± 12 ms 879 ms ± 11 ms +2.19 %
threejs_production-mode_10x + exec 5.72 s ± 28 ms 5.77 s ± 42 ms +0.84 %

@rspack-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 Ran ecosystem CI: Open

suite result
modernjs ✅ success
_selftest ✅ success
nx ✅ success
rspress ✅ success
rsbuild ✅ success
examples ✅ success

Please sign in to comment.