Skip to content

Commit 884a527

Browse files
committed
project files
1 parent ee05fd3 commit 884a527

File tree

3 files changed

+17
-26
lines changed

3 files changed

+17
-26
lines changed

.github/workflows/CI.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,16 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515
with:
1616
ref: ${{ github.ref }}
1717
fetch-depth: 0
1818

19-
- uses: actions/setup-node@v1
19+
- name: "Setup node"
20+
uses: actions/setup-node@v4
2021
with:
21-
node-version: ">=14"
22-
check-latest: true
22+
node-version: "lts/*"
23+
#cache: "npm"
2324

2425
- name: Install Salesforce CLI + Scanner
2526
run: |
@@ -29,6 +30,7 @@ jobs:
2930
sf plugins install @salesforce/sfdx-scanner
3031
3132
- name: Run SFDX Scanner - Report findings as comments
33+
if: github.event_name == 'pull_request'
3234
uses: mitchspano/sfdx-scan-pull-request@v0.1.16
3335
with:
3436
severity-threshold: 4
@@ -37,6 +39,7 @@ jobs:
3739
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3840

3941
- name: Authenticate into DevHub
42+
id: authenticate
4043
run: |
4144
echo "${SALESFORCE_JWT_SECRET_KEY}" > server.key
4245
sf org login jwt --client-id ${{ secrets.SALESFORCE_CONSUMER_KEY }} --jwt-key-file server.key --username ${{ secrets.SALESFORCE_DEVHUB_USERNAME}} --set-default-dev-hub --alias devhub

package.json

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,18 @@
44
"version": "1.0.0",
55
"description": "Apex Trigger Actions Framework",
66
"scripts": {
7-
"lint": "npm run lint:lwc && npm run lint:aura",
8-
"lint:aura": "eslint **/aura/**",
9-
"lint:lwc": "eslint **/lwc/**",
10-
"test": "npm run test:unit",
11-
"test:unit": "sfdx-lwc-jest",
12-
"test:unit:watch": "sfdx-lwc-jest --watch",
13-
"test:unit:debug": "sfdx-lwc-jest --debug",
14-
"test:unit:coverage": "sfdx-lwc-jest --coverage",
7+
"prepare": "husky",
158
"prettier": "prettier --write \"**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,yaml,yml}\"",
169
"prettier:verify": "prettier --list-different \"**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,yaml,yml}\""
1710
},
1811
"devDependencies": {
19-
"@prettier/plugin-xml": "^0.13.1",
20-
"@salesforce/eslint-config-lwc": "^0.11.1",
21-
"@salesforce/eslint-plugin-aura": "^2.0.0",
22-
"@salesforce/sfdx-lwc-jest": "^0.10.4",
23-
"eslint": "^7.24.0",
24-
"eslint-config-prettier": "^8.1.0",
25-
"husky": "^6.0.0",
26-
"lint-staged": "^10.5.4",
27-
"prettier": "3.0.2",
28-
"prettier-plugin-apex": "2.0.1"
12+
"@prettier/plugin-xml": "^3.4.1",
13+
"eslint": "^9.22.0",
14+
"eslint-config-prettier": "^10.1.1",
15+
"husky": "^9.1.7",
16+
"lint-staged": "^15.5.0",
17+
"prettier": "3.5.3",
18+
"prettier-plugin-apex": "2.2.5"
2919
},
3020
"husky": {
3121
"hooks": {
@@ -36,8 +26,6 @@
3626
"**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}": [
3727
"prettier --write"
3828
],
39-
"**/{aura|lwc}/**": [
40-
"eslint"
41-
]
29+
"**/{aura|lwc}/**": ["eslint"]
4230
}
4331
}

sfdx-project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@
4545
"Trigger Actions Framework@0.3.1-7": "04tKY000000PdZJYA0",
4646
"Trigger Actions Framework@0.3.2": "04tKY000000PdZOYA0"
4747
}
48-
}
48+
}

0 commit comments

Comments
 (0)