-
Notifications
You must be signed in to change notification settings - Fork 79
38 lines (36 loc) · 1.22 KB
/
cli-test-npm.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
name: CLI Tests on npm installations
on:
workflow_dispatch:
inputs:
version:
description: 'Version to use for running test cases'
required: true
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, lts/* ]
steps:
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Global - Testing installation of Twilio CLI (1)
run: |
npm make install -g twilio-cli@${{ github.event.inputs.version }}
node test/asserts/validate_tests.js
- name: Global - Testing upgrade Twilio CLI (2)
run: |
npm make install -g twilio-cli@${{ github.event.inputs.version }}
npm install -g twilio-cli
node test/asserts/validate_tests.js
- name: Local - Testing installation of Twilio CLI (1)
run: |
npm install twilio-cli
node test/asserts/validate_tests.js
- name: Local - Testing upgrade Twilio CLI (2)
run: |
npm install twilio-cli@${{ github.event.inputs.version }}
npm install twilio-cli
node test/asserts/validate_tests.js