forked from twilio/twilio-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes to enable a draft release for npm and homebrew
- Loading branch information
1 parent
14f7cb3
commit 733c0fb
Showing
5 changed files
with
22,861 additions
and
4,044 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/sh | ||
echo "Running revert last commit script" | ||
echo $1 | ||
echo "Last commit to revert :" | ||
echo $(git rev-parse --verify HEAD) | ||
echo "Git configurations :" | ||
git config --global user.email "team_interfaces+github@twilio.com" | ||
git config --global user.name "twilio-dx" | ||
git revert $(git rev-parse --verify HEAD) | ||
git push origin refs/heads/$1:refs/heads/$1 | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
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: [16.x, 14.x, 10.x] | ||
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 install -g twilio-cli@${{ github.event.inputs.version }} | ||
node src/asserts/validate_tests.js | ||
- name: Global - Testing upgrade Twilio CLI (2) | ||
run: | | ||
npm install -g twilio-cli@${{ github.event.inputs.version }} | ||
npm install -g twilio-cli | ||
node src/asserts/validate_tests.js | ||
- name: Local - Testing installation of Twilio CLI (1) | ||
run: | | ||
npm install twilio-cli | ||
node src/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 src/asserts/validate_tests.js | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.