-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (48 loc) · 1.59 KB
/
Copy pathrun-e2e-tests.yml
File metadata and controls
54 lines (48 loc) · 1.59 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
---
name: E2E Tests a published version
on:
workflow_call:
inputs:
channel:
description: npm spec or tarball url to install the plugin from
type: string
required: true
permissions:
contents: read
jobs:
e2e-test:
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
# Floating: previous LTS, active LTS, current. These shift when a new
# LTS is cut (Oct), so engines.node must move with them or CI stops
# testing a version the manifest still promises.
node: ['lts/-1', 'lts/*', 'latest']
runs-on: ${{ matrix.os }}
# Two different shells run here. `shell:` governs the run: block, where the
# windows default (pwsh) makes `>> "$GITHUB_ENV"` silently ineffective;
# npm_config_script_shell governs the bodies npm spawns for `npm run`, whose
# windows default is cmd.exe, not pwsh.
defaults:
run:
shell: bash
env:
npm_config_script_shell: bash
steps:
- name: Setup node
uses: actions/setup-node@v7
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 @salesforce/cli
- name: Install new plugin version
env:
CHANNEL: ${{ inputs.channel }}
run: echo y | sf plugins install "$CHANNEL"
- name: Test new plugin version installation
run: sf dataset load --help