-
-
Notifications
You must be signed in to change notification settings - Fork 117
51 lines (43 loc) · 1.18 KB
/
run-e2e-tests.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---
name: E2E Tests a published version
on:
workflow_call:
inputs:
channel:
type: string
default: latest-rc
jobs:
e2e-test:
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
node: [18, 20, 22]
cli: ['@salesforce/cli']
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
ref: 'e2e/head'
fetch-depth: 0
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Set environment variables
run: |
echo "SF_DISABLE_AUTOUPDATE=true" >> "$GITHUB_ENV"
echo "SF_DISABLE_TELEMETRY=true" >> "$GITHUB_ENV"
- name: Install cli
run: npm install -g ${{ matrix.cli }}
- name: Install new plugin version
run: echo y | sf plugins install sfdx-git-delta@${{ inputs.channel }}
- name: Test new plugin version
run: sf sgd source delta --help
- name: E2E Tests
run: |
npm install
npm run test:e2e
- name: Display diff
run: git --no-pager diff