Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/codeql/codeql-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: "CodeQL Config"

paths-ignore:
- "demo/**"
- "**/demo/**"
- "demo/build/**"
- "build/**"
- "dist/**"
- "node_modules/**"
93 changes: 71 additions & 22 deletions .github/workflows/ci-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,28 @@ jobs:
with:
node-version: "20" # Specify the node version you need

- name: Cache npm
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV

- name: Cache pnpm store
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
path: ${{ env.STORE_PATH }}
key: ${{ runner.OS }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-pnpm-store-

- name: Install Dependencies
run: npm ci
run: pnpm install --frozen-lockfile


lint:
needs: install-dependencies
Expand All @@ -41,18 +53,30 @@ jobs:
with:
node-version: "20" # Specify the node version you need

- name: Cache npm
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV

- name: Cache pnpm store
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
path: ${{ env.STORE_PATH }}
key: ${{ runner.OS }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-pnpm-store-

- name: Install Dependencies
run: npm ci
run: pnpm install --frozen-lockfile

- name: Run Linter
run: npm run lint
run: packagenpm run lint

format:
needs: install-dependencies
Expand All @@ -64,16 +88,29 @@ jobs:
with:
node-version: "20" # Specify the node version you need

- name: Cache npm
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV

- name: Cache pnpm store
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
path: ${{ env.STORE_PATH }}
key: ${{ runner.OS }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-pnpm-store-


- name: Install Dependencies
run: npm ci
run: pnpm install --frozen-lockfile

- name: Run Prettier
run: npm run check-format

Expand All @@ -87,15 +124,27 @@ jobs:
with:
node-version: "20" # Specify the node version you need

- name: Cache npm
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV

- name: Cache pnpm store
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
path: ${{ env.STORE_PATH }}
key: ${{ runner.OS }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-pnpm-store-

- name: Install Dependencies
run: npm ci && npm run build
run: pnpm install --frozen-lockfile
&& npm run build
- name: Run Tests
run: npm run test
run: pnpm run test
4 changes: 2 additions & 2 deletions demo/build/index.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/cjs/index.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/cjs/react/JsonViewer.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/esm/index.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/esm/react/JsonViewer.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/iife/index.js

Large diffs are not rendered by default.

Loading