-
Notifications
You must be signed in to change notification settings - Fork 39
33 lines (31 loc) · 931 Bytes
/
preview.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Test Salesforce Preview Release
on:
workflow_dispatch:
jobs:
default:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version-file: .node-version
- name: Install dependencies
run: |
npm ci
npm install --global @salesforce/cli@${SF_CLI_VERSION:-"latest"}
- name: Run unit tests
run: npm run test
- name: Authenticate DevHub and create scratch org
env:
SFDX_AUTH_URL_DEVHUB: ${{ secrets.SFDX_AUTH_URL_DEVHUB }}
run: |
sf org login sfdx-url -d -a devhub -f <(echo "${SFDX_AUTH_URL_DEVHUB}")
npm run develop --release preview
- name: Run end-to-end tests
run: npm run test:e2e
- name: Delete scratch org
if: always()
run: |
sf org delete scratch -p