Skip to content

Commit 628b9e3

Browse files
authored
chore: added packages check in project (#484)
1 parent 8340fc6 commit 628b9e3

File tree

4 files changed

+530
-40
lines changed

4 files changed

+530
-40
lines changed

.github/workflows/ci.yml

Lines changed: 31 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -11,37 +11,39 @@ jobs:
1111
name: Verify Files
1212
runs-on: ubuntu-latest
1313
steps:
14-
- name: Checkout
15-
uses: actions/checkout@v4
16-
with:
17-
fetch-depth: 0
18-
- name: Setup Node
19-
uses: actions/setup-node@v4
20-
with:
21-
node-version: 20
22-
cache: npm
23-
- name: Install Packages
24-
run: npm ci
25-
- name: Lint Files
26-
run: npm run lint
27-
- name: Typecheck
28-
run: npm run typecheck
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
- name: Setup Node
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: 20
22+
cache: npm
23+
- name: Install Packages
24+
run: npm ci
25+
- name: Lint Files
26+
run: npm run lint
27+
- name: Typecheck
28+
run: npm run typecheck
29+
# Temporarily disabled due to errors in dependencies
30+
# - name: Check Packages
31+
# run: npm run packages:check
2932

3033
tests:
3134
name: Tests
3235
runs-on: ubuntu-latest
3336
steps:
34-
- name: Checkout
35-
uses: actions/checkout@v4
36-
with:
37-
fetch-depth: 0
38-
- name: Setup Node
39-
uses: actions/setup-node@v4
40-
with:
41-
node-version: 20
42-
cache: npm
43-
- name: Install Packages
44-
run: npm ci
45-
- name: Unit Tests
46-
run: npm run test
47-
37+
- name: Checkout
38+
uses: actions/checkout@v4
39+
with:
40+
fetch-depth: 0
41+
- name: Setup Node
42+
uses: actions/setup-node@v4
43+
with:
44+
node-version: 20
45+
cache: npm
46+
- name: Install Packages
47+
run: npm ci
48+
- name: Unit Tests
49+
run: npm run test

knip.config.ts

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import type {KnipConfig} from 'knip';
2+
3+
const config: KnipConfig = {
4+
entry: ['src/index.ts'],
5+
project: ['src/**/*.{ts,tsx}', 'playwright/**/*.{ts,tsx}'],
6+
ignore: [
7+
'build/**',
8+
'node_modules/**',
9+
'**/__stories__/**',
10+
'**/*.stories.{ts,tsx}',
11+
'**/__tests__/**',
12+
'**/*.test.{ts,tsx}',
13+
'**/__snapshots__/**',
14+
'test-results/**',
15+
'playwright-report/**',
16+
'coverage/**',
17+
'playwright/playwright/index.tsx',
18+
],
19+
ignoreDependencies: [
20+
// Documentation tools
21+
'@doc-tools/transform',
22+
// Sass is used indirectly by rollup-plugin-postcss and sass-loader for SCSS compilation
23+
'sass',
24+
],
25+
ignoreBinaries: [
26+
// These are false positives from GitHub Actions workflow
27+
'magenta,blue', // color parameters for concurrently, not a binary
28+
'storybook-static', // directory path, not a binary
29+
'concurrently',
30+
'http-server',
31+
],
32+
};
33+
34+
export default config;

0 commit comments

Comments
 (0)