Skip to content

Commit

Permalink
Use GNU Parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
tkb-github committed Sep 26, 2024
1 parent be0af21 commit 1329e48
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/redos-detector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
push:
paths:
- 'staging'
- '**.yml'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -33,7 +34,4 @@ jobs:
# Runs a set of commands using the runners shell
- name: Run redos-detector
run: |
while read -r regex; do
echo "$regex"
npx redos-detector check "$regex" --caseInsensitive --resultsLimit 0
done < staging
cat staging | parallel -j+0 npx redos-detector check "$regex" --caseInsensitive --resultsLimit 0

0 comments on commit 1329e48

Please sign in to comment.