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
6 changes: 4 additions & 2 deletions .github/workflows/jscpd-duplication-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ concurrency:
jobs:
call-jscpd-duplication-check:
if: ${{ github.event.pull_request.draft == false }}
uses: fylein/workflows/.github/workflows/jscpd-duplication-check.yml@v1
uses: fylein/workflows/.github/workflows/jscpd-duplication-check.yml@master
secrets:
github-token: ${{ secrets.GITHUB_TOKEN }}
with:
duplication_threshold: 7
reviewer_1: 'ashwin1111'
reviewer_2: 'JustARatherRidiculouslyLongUsername'
tech_stack: 'JavaScript'
command_to_run: 'npx jscpd --ignore "**/node_modules/**" --output report --reporters json'
command_to_run: 'pnpm dlx jscpd --ignore "**/node_modules/**" --output report --reporters json'
package_manager: 'pnpm'


14 changes: 9 additions & 5 deletions .github/workflows/original-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,19 @@ jobs:
env:
CI: true
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
with:
cache: true

- name: Use Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: '14'
node-version: '22'

- run: npm install
- run: npm run package
- run: pnpm install --frozen-lockfile
- run: pnpm run package

- uses: ./
with:
Expand Down
14 changes: 9 additions & 5 deletions .github/workflows/test-myself.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,19 @@ jobs:
env:
CI: true
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
with:
cache: true

- name: Use Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: '14'
node-version: '22'

- run: npm install
- run: npm run package
- run: pnpm install --frozen-lockfile
- run: pnpm run package

- uses: ./
with:
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/validate-pnpm-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Validate pnpm config

on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]

concurrency:
group: validate-pnpm-config-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
validate_pnpm_config:
permissions:
contents: read
uses: fylein/workflows/.github/workflows/validate-pnpm-config.yml@master
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/node_modules
/node_modules
package-lock.json
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ jobs:

## How to edit the action
Feel free to submit a PR to this repo and ask me to update the action, but if you'd like to create your own action:
1. Clone down repo, `npm install`, and make changes
2. Run `npm run package`
1. Clone down repo, `pnpm install`, and make changes
2. Run `pnpm run package`
3. Commit changes
4. Create a new release on GitHub to publish latest version of the action. See https://help.github.com/en/actions/building-actions/publishing-actions-in-github-marketplace

Expand Down
Loading
Loading