-
-
Notifications
You must be signed in to change notification settings - Fork 3
55 lines (44 loc) · 1.35 KB
/
run-e2e-tests.yml
File metadata and controls
55 lines (44 loc) · 1.35 KB
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
52
53
54
55
---
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: [20, 22, 24]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@v5
with:
ref: 'e2e/base'
fetch-depth: 0
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Additional setup
run: |
echo "SF_DISABLE_AUTOUPDATE=true" >> "$GITHUB_ENV"
echo "SF_DISABLE_TELEMETRY=true" >> "$GITHUB_ENV"
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
- name: Install cli
run: npm install -g @salesforce/cli
- name: Install new plugin version
run: echo y | sf plugins install sf-git-merge-driver@${{ inputs.channel }}
- name: Test new plugin version installation
run: sf git merge driver --help
- name: E2E Test
run: npm run test:e2e
- name: Check E2E test result
run: npm run validate
- name: Display current state
run: git status