Skip to content

Commit 3809965

Browse files
authored
Merge pull request #126 from pozil/pozil/spring23
Spring '23 release
2 parents 0815520 + 5d74578 commit 3809965

18 files changed

+18448
-5077
lines changed

.github/workflows/ci-pr.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,12 @@ jobs:
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

.github/workflows/ci.yml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,12 @@ jobs:
1717
- name: 'Checkout source code'
1818
uses: actions/checkout@v3
1919

20+
# Install Volta to enforce proper node and package manager versions
21+
- name: 'Install Volta'
22+
uses: volta-cli/action@v4
23+
2024
# Cache node_modules to speed up the process
21-
- name: Restore node_modules cache
25+
- name: 'Restore node_modules cache'
2226
id: cache-npm
2327
uses: actions/cache@v3
2428
with:
@@ -55,39 +59,39 @@ jobs:
5559
runs-on: ubuntu-latest
5660
needs: formatting-and-lwc-tests
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
74-
run: 'echo ${{ secrets.DEVHUB_SFDX_URL}} > ./DEVHUB_SFDX_URL.txt'
78+
run: echo ${{ secrets.DEVHUB_SFDX_URL}} > ./DEVHUB_SFDX_URL.txt
7579

7680
# Authenticate dev hub
7781
- name: 'Authenticate Dev Hub'
78-
run: 'sfdx force:auth:sfdxurl:store -f ./DEVHUB_SFDX_URL.txt -a devhub -d'
82+
run: sfdx force:auth:sfdxurl:store -f ./DEVHUB_SFDX_URL.txt -a devhub -d
7983

8084
# Create scratch org
8185
- name: 'Create scratch org'
82-
run: 'sfdx force:org:create -f config/project-scratch-def.json -a lookup-ci -s -d 1'
86+
run: sfdx force:org:create -f config/project-scratch-def.json -a lookup-ci -s -d 1
8387

8488
# Deploy source to scratch org
8589
- name: 'Push source'
86-
run: 'sfdx force:source:push'
90+
run: sfdx force:source:push
8791

8892
# Run Apex tests in scratch org
8993
- name: 'Run Apex tests'
90-
run: 'sfdx force:apex:test:run -c -r human -d ./tests/apex -w 20'
94+
run: sfdx force:apex:test:run -c -r human -d ./tests/apex -w 20
9195

9296
# Upload Apex code coverage data
9397
- name: 'Upload code coverage for Apex to Codecov.io'
@@ -98,4 +102,4 @@ jobs:
98102
# Housekeeping
99103
- name: 'Delete scratch org'
100104
if: always()
101-
run: 'sfdx force:org:delete -p -u lookup-ci'
105+
run: sfdx force:org:delete -p -u lookup-ci

0 commit comments

Comments
 (0)