1616            - name : ' Checkout source code' 
1717              uses : actions/checkout@v3 
1818
19+             #  Install Volta to enforce proper node and package manager versions
20+             - name : ' Install Volta' 
21+               uses : volta-cli/action@v4 
22+ 
1923            #  Cache node_modules to speed up the process
20-             - name : Restore node_modules cache 
24+             - name : ' Restore node_modules cache' 
2125              id : cache-npm 
2226              uses : actions/cache@v3 
2327              with :
@@ -55,19 +59,19 @@ jobs:
5559        needs : formatting-and-lwc-tests 
5660        if : ${{ github.actor != 'dependabot[bot]' }} 
5761        steps :
62+             #  Checkout the code in the pull request
63+             - name : ' Checkout source code' 
64+               uses : actions/checkout@v3 
65+ 
5866            #  Install Salesforce CLI
59-             - name : Install Salesforce CLI 
67+             - name : ' Install Salesforce CLI' 
6068              run : | 
6169                  wget https://developer.salesforce.com/media/salesforce-cli/sfdx/channels/stable/sfdx-linux-x64.tar.xz 
6270                  mkdir ~/sfdx 
6371                  tar xJf sfdx-linux-x64.tar.xz -C ~/sfdx --strip-components 1 
6472                  echo "$HOME/sfdx/bin" >> $GITHUB_PATH 
6573                  ~/sfdx/bin/sfdx version 
6674
67-              #  Checkout the code in the pull request
68-             - name : ' Checkout source code' 
69-               uses : actions/checkout@v3 
70- 
7175             #  Store secret for dev hub
7276            - name : ' Populate auth file with DEVHUB_SFDX_URL secret' 
7377              shell : bash 
@@ -81,19 +85,19 @@ jobs:
8185
8286             #  Authenticate dev hub
8387            - name : ' Authenticate Dev Hub' 
84-               run : ' sfdx force:auth:sfdxurl:store -f ./DEVHUB_SFDX_URL.txt -a devhub -d' 
88+               run : sfdx force:auth:sfdxurl:store -f ./DEVHUB_SFDX_URL.txt -a devhub -d 
8589
8690            #  Create scratch org
8791            - name : ' Create scratch org' 
88-               run : ' sfdx force:org:create -f config/project-scratch-def.json -a lookup-ci -s -d 1' 
92+               run : sfdx force:org:create -f config/project-scratch-def.json -a lookup-ci -s -d 1 
8993
9094            #  Deploy source to scratch org
9195            - name : ' Push source' 
92-               run : ' sfdx force:source:push' 
96+               run : sfdx force:source:push 
9397
9498            #  Run Apex tests in scratch org
9599            - name : ' Run Apex tests' 
96-               run : ' sfdx force:apex:test:run -c -r human -d ./tests/apex -w 20' 
100+               run : sfdx force:apex:test:run -c -r human -d ./tests/apex -w 20 
97101
98102            #  Upload Apex code coverage data
99103            - name : ' Upload code coverage for Apex to Codecov.io' 
@@ -104,4 +108,4 @@ jobs:
104108            #  Housekeeping
105109            - name : ' Delete scratch org' 
106110              if : always() 
107-               run : ' sfdx force:org:delete -p -u lookup-ci' 
111+               run : sfdx force:org:delete -p -u lookup-ci 
0 commit comments