Skip to content

Commit c979136

Browse files
committed
fix: update github action to get run pmd correctly
1 parent 9813138 commit c979136

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ jobs:
6161
wget https://github.com/pmd/pmd/releases/download/pmd_releases%2F$PMD_VERSION/pmd-dist-$PMD_VERSION-bin.zip
6262
unzip pmd-dist-$PMD_VERSION-bin.zip -d ~
6363
mv ~/pmd-bin-$PMD_VERSION ~/pmd
64-
~pmd/bin/pmd --version
64+
~/pmd/bin/pmd --version
6565
6666
# Run PMD scan
6767
- name: 'Run PMD scan'
68-
run: ~pmd/bin/pmd -d sfdx-source/LabsActionPlans -R pmd/deployRules.xml -f text --cache .pmdCache -min 2
68+
run: ~/pmd/bin/pmd -d sfdx-source/LabsActionPlans -R pmd/deployRules.xml -f text --cache .pmdCache -min 2

.github/workflows/pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ jobs:
3232
wget https://github.com/pmd/pmd/releases/download/pmd_releases%2F$PMD_VERSION/pmd-dist-$PMD_VERSION-bin.zip
3333
unzip pmd-dist-$PMD_VERSION-bin.zip -d ~
3434
mv ~/pmd-bin-$PMD_VERSION ~/pmd
35-
~pmd/bin/pmd --version
35+
~/pmd/bin/pmd --version
3636
3737
# Run PMD scan
3838
- name: 'Run PMD scan'
39-
run: ~pmd/bin/pmd -d sfdx-source -R pmd/deployRules.xml -f text --cache .pmdCache --minimum-priority 2
39+
run: ~/pmd/bin/pmd -d sfdx-source -R pmd/deployRules.xml -f text --cache .pmdCache --minimum-priority 2
4040
test-run:
4141
runs-on: ubuntu-latest
4242
needs: check-pmd

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"test:unit:coverage": "sfdx-lwc-jest --coverage",
2121
"apex:test:local": "rm -rf testresults && sf apex run test --detailed-coverage --code-coverage --result-format human --test-level RunLocalTests --wait 20 --output-dir testresults",
2222
"pmd:scan:csv": "$HOME/pmd/bin/pmd -d sfdx-source -R pmd/ruleset.xml -f csv -r pmd/pmd.csv --cache .pmdCache --relativize-paths-with ./",
23-
"pmd:scan:deploy:csv": "~pmd/bin/pmd -d sfdx-source -R pmd/deployRules.xml -f csv -r pmd/deploy.csv --cache .pmdCache --relativize-paths-with ./",
23+
"pmd:scan:deploy:csv": "~/pmd/bin/pmd -d sfdx-source -R pmd/deployRules.xml -f csv -r pmd/deploy.csv --cache .pmdCache --relativize-paths-with ./",
2424
"prettier:docs": "prettier --write \"docs/*.html\"",
2525
"prettier:package": "prettier --write \"sfdx-source/**/*.{cls,component,page,trigger}\"",
2626
"prettier:verify": "prettier --list-different \"sfdx-source/**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,yaml,yml}\"",

0 commit comments

Comments
 (0)