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
13 changes: 8 additions & 5 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,19 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.ref || github.ref_name }}

- name: Set Node.js 18.x
- name: Set up pnpm
uses: pnpm/action-setup@v6

- name: Set Node.js 24.x
uses: actions/setup-node@v4
with:
node-version: 18.x
cache: "yarn"
node-version: 24.x
cache: "pnpm"

- run: yarn install
- run: pnpm install

- run: |
yarn all
pnpm all

- name: Compare the expected and actual dist/ directories
id: diff
Expand Down
1 change: 1 addition & 0 deletions __tests__/readConfig.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import * as fs from 'fs';
import { readConfig, readJSONSync } from '../src/readConfig';

jest.mock('fs', () => ({
...jest.requireActual('fs'),
existsSync: jest.fn(),
readFileSync: jest.fn(),
promises: {
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,5 +116,5 @@ outputs:
hasDuplicates:
description: "A value indicating if any files were duplicated when `jscpdCheck` is `true`."
runs:
using: "node16"
using: "node20"
main: "dist/index.js"
283,586 changes: 142,573 additions & 141,013 deletions dist/index.js

Large diffs are not rendered by default.

Loading