Skip to content

chore: Cli integration test #272

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 104 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
104 commits
Select commit Hold shift + click to select a range
0c76fd0
chore: fix auditing vulnerabilities
manisha1997 Apr 19, 2025
abbb4eb
chore: fix auditing vulnerabilities
manisha1997 Apr 19, 2025
58f9139
chore: update cli core tag
manisha1997 Apr 23, 2025
6f87cdc
chore: add tag
manisha1997 Apr 24, 2025
fd95622
chore: add tag
manisha1997 Apr 24, 2025
b9c525b
chore: add tag
manisha1997 Apr 24, 2025
cc95efe
chore: Update package.json
manisha1997 Apr 24, 2025
c0cca72
chore: add tag
manisha1997 Apr 24, 2025
c3da8a3
chore: fix test case
manisha1997 Apr 26, 2025
2c31d95
chore: fix test case
manisha1997 Apr 26, 2025
f863733
chore: fix test case
manisha1997 Apr 26, 2025
edb4dcf
chore: fix linting error
manisha1997 Apr 28, 2025
085638e
chore: fix vulnerabilities
manisha1997 Apr 28, 2025
81c2f9b
chore: fix vulnerabilities
manisha1997 Apr 28, 2025
d533503
chore: add cli core tag
manisha1997 May 6, 2025
27ed812
chore: add cli core tag
manisha1997 May 6, 2025
0cf3aed
chore: add cli core tag
manisha1997 May 6, 2025
b41b8fe
chore: add cli core tag
manisha1997 May 6, 2025
bbe1bf4
chore: add cli core tag
manisha1997 May 6, 2025
83ff1f3
chore: add cli core tag
manisha1997 May 6, 2025
7df7bc9
chore: add cli core tag
manisha1997 May 7, 2025
6b6a6da
chore: update release
manisha1997 May 7, 2025
b7f11cf
chore: add cli core tag
manisha1997 May 7, 2025
0db9bcc
chore: add cli core tag
manisha1997 May 7, 2025
b9c6d56
chore: add cli core tag
manisha1997 May 7, 2025
1c86537
chore: add cli core tag
manisha1997 May 7, 2025
e314cca
chore: add cli core tag
manisha1997 May 7, 2025
17c7772
chore: add cli core tag
manisha1997 May 7, 2025
24b7575
chore: add cli core tag
manisha1997 May 7, 2025
497c50f
chore: add cli core tag
manisha1997 May 7, 2025
dca4bd6
chore: add cli core tag
manisha1997 May 7, 2025
e9b0814
chore: add cli core tag
manisha1997 May 7, 2025
a323e4a
chore: add cli core tag
manisha1997 May 7, 2025
d502380
chore: add cli core tag
manisha1997 May 7, 2025
4b36741
chore: add cli core tag
manisha1997 May 7, 2025
4360a4e
chore: add cli core tag
manisha1997 May 7, 2025
07dace7
chore: add cli core tag
manisha1997 May 8, 2025
272e8fe
chore: add cli core tag
manisha1997 May 8, 2025
eea9c71
chore: add cli core tag
manisha1997 May 8, 2025
248cb71
chore: add cli core tag
manisha1997 May 8, 2025
f7ef4d9
chore: add cli core tag
manisha1997 May 8, 2025
afe53ae
chore: add cli core tag
manisha1997 May 9, 2025
81084a7
chore: add cli core tag
manisha1997 May 9, 2025
83628ad
fix: add dummy commit
manisha1997 May 9, 2025
f9f03ca
fix: add dummy commit (#273)
manisha1997 May 13, 2025
ad3b2ff
fix: test release
manisha1997 May 15, 2025
77b1742
fix: test release
manisha1997 May 15, 2025
202266f
chore: update .releaserc.json
manisha1997 May 15, 2025
5a2cf03
chore: Update release.yml
manisha1997 May 15, 2025
70664b3
fix: test release
manisha1997 May 15, 2025
f1450ff
fix: test release
manisha1997 May 15, 2025
f7c3671
chore: Update .releaserc.json
manisha1997 May 15, 2025
cc2a30c
oaiFix: Update README.md (#274)
manisha1997 May 15, 2025
a219728
fix: test release
manisha1997 May 15, 2025
463d734
fix: test release
manisha1997 May 15, 2025
80e4979
fix: test release
manisha1997 May 15, 2025
eccd706
fix: test release
manisha1997 May 16, 2025
2a29e05
fix: test release
manisha1997 May 16, 2025
7b65d16
fix: test release
manisha1997 May 16, 2025
0c4f1cb
fix: test release
manisha1997 May 16, 2025
2afbdc4
fix: test release
manisha1997 May 16, 2025
86a57fb
fix: test release
manisha1997 May 16, 2025
14cb125
fix: test release
manisha1997 May 16, 2025
04e6097
fix: test release
manisha1997 May 16, 2025
3565fb4
fix: test release
manisha1997 May 19, 2025
b4fcb0c
fix: test release
manisha1997 May 19, 2025
80986d0
fix: test release
manisha1997 May 19, 2025
0fa6de0
fix: test release
manisha1997 May 19, 2025
c8d65c5
fix: test release
manisha1997 May 19, 2025
2e6f957
fix: test release
manisha1997 May 19, 2025
1deb4d2
fix: test release
manisha1997 May 19, 2025
238167d
fix: test release
manisha1997 May 19, 2025
0427103
fix: test release
manisha1997 May 19, 2025
4504699
fix: test release
manisha1997 May 19, 2025
c37c118
fix: test release
manisha1997 May 19, 2025
91a1fad
fix: test release
manisha1997 May 19, 2025
67a6dc9
fix: test release
manisha1997 May 19, 2025
d8aa77f
fix: test release
manisha1997 May 19, 2025
6c5877a
fix: test release
manisha1997 May 19, 2025
f23f7ca
fix: test release
manisha1997 May 19, 2025
fc054be
fix: test release
manisha1997 May 19, 2025
cb4d977
fix: test release
manisha1997 May 19, 2025
0528f93
fix: test release
manisha1997 May 19, 2025
d1dc07a
fix: test release
manisha1997 May 19, 2025
f86af48
fix: test release
manisha1997 May 19, 2025
e8f5eb3
fix: test release
manisha1997 May 19, 2025
c0849f3
fix: test release
manisha1997 May 20, 2025
5a8a2f8
fix: test release
manisha1997 May 20, 2025
166ead1
fix: test release
manisha1997 May 20, 2025
c4111da
chore: Update update-release.js
manisha1997 May 20, 2025
9820b03
chore: Update get-version-type.test.js
manisha1997 May 20, 2025
dcc1fe0
chore: Update .releaserc.json
manisha1997 May 20, 2025
b37ab61
Update .releaserc.json
manisha1997 May 20, 2025
28ab118
chore: Update .releaserc.json
manisha1997 May 20, 2025
ac5dec0
chore: Update package.json
manisha1997 May 20, 2025
7a4eb43
chore: Update release.yml
manisha1997 May 20, 2025
e2033fc
Update release.yml
manisha1997 May 20, 2025
129ab39
chore: Update release.yml
manisha1997 May 20, 2025
b55adf3
chore: Update release.yml
manisha1997 May 20, 2025
839de8d
chore: Update release.yml
manisha1997 May 20, 2025
5b8e902
chore: Update README.md
manisha1997 May 20, 2025
8bd16f0
chore: Update get-version-type.test.js
manisha1997 May 20, 2025
2adaf2a
chore: Update .eslintrc
manisha1997 May 20, 2025
38c99ee
chore: Update get-version-type.test.js
manisha1997 May 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/cli-core-audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [18.x, 16.x, 14.x]
node-version: [lts/*, 22.x, 20.x]
steps:
- name: Checkout cli repo
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
Expand All @@ -32,7 +32,7 @@ jobs:
name: Notify Npm Audit Failed
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Slack Notification
uses: rtCamp/action-slack-notify@v2
env:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/cli-core-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [18.x, 16.x, 14.x]
node-version: [lts/*, 22.x, 20.x]
steps:
- name: Checkout cli core repo
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
- run: make install
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
Expand All @@ -36,7 +36,7 @@ jobs:
name: Notify Test Failed
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Slack Notification
uses: rtCamp/action-slack-notify@v2
env:
Expand Down
47 changes: 24 additions & 23 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,20 @@ jobs:
aws-region: us-east-1

cli-token-validation:
needs: [ cli-core-token-validation ]
runs-on: ubuntu-latest
steps:
- name: Checkout cli-core repo
uses: actions/checkout@v2
- name: Execute py script to validate twilio-cli tokens
id: cli_token
run: |
output=$(python3 .github/scripts/validate_cli_tokens.py)
echo "::set-output name=tokenStatus::$output"
- name: Print status
run: echo "${{ steps.cli_token.outputs.tokenStatus }}"
- name: Validate the github workflow
if: ${{ steps.cli_token.outputs.tokenStatus != 'success'}}
run: exit 1
needs: [ cli-core-token-validation ]
runs-on: ubuntu-latest
steps:
- name: Checkout cli-core repo
uses: actions/checkout@v2
- name: Execute py script to validate twilio-cli tokens
id: cli_token
run: |
output=$(python3 .github/scripts/validate_cli_tokens.py)
- name: Print status
run: echo "${{ steps.cli_token.outputs.tokenStatus }}"
- name: Validate the github workflow
if: ${{ steps.cli_token.outputs.tokenStatus != 'success'}}
run: exit 1

# notify-start:
# needs: [ cli-token-validation ]
Expand All @@ -87,13 +86,13 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
node-version: [20.x, 22.x, lts/*]
steps:
- name: Checkout cli-core repo
uses: actions/checkout@v2
uses: actions/checkout@v4
- run: make install
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
Expand Down Expand Up @@ -132,10 +131,10 @@ jobs:
runs-on: ubuntu-latest
needs: [update-api-specs]
outputs:
tag-name: ${{ steps.semantic-release.outputs.TAG_NAME }}
tag-name: ${{ steps.update-release.outputs.TAG_NAME }}
steps:
- name: Checkout cli-core repo
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
persist-credentials: false
- run: |
Expand All @@ -147,12 +146,14 @@ jobs:
node-version: 18.x
- name: semanticRelease
id: semantic-release
run: DEBUG=semantic-release:* npx semantic-release -t \${version}
run: DEBUG=semantic-release:* npx semantic-release -t \${version}
env:
GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Update release
id: update-release
run: |
echo "::set-output name=TAG_NAME::$TAG_NAME"
fileName="$GITHUB_WORKSPACE/.github/scripts/update-release.js"
node -e "require('$fileName').updateRelease()"
env:
Expand All @@ -165,7 +166,7 @@ jobs:
needs: [ update-api-specs, release]
steps:
- name: Checkout cli-core repo
uses: actions/checkout@v2
uses: actions/checkout@v4
- run: |
git pull
make install
Expand All @@ -178,7 +179,7 @@ jobs:
WORKFLOW_NAME: 'release.yml'
BRANCH_NAME: ${{github.event.inputs.cli-branch}}
REPO_NAME: ${{ github.repository_owner }}/twilio-cli
INPUTS: '{ "change-log": ${{ toJSON(needs.update-api-specs.outputs.change-log) }}, "version-type": "${{needs.update-api-specs.outputs.version-type}}", "homebrew-branch": "${{github.event.inputs.homebrew-branch}}", "homebrew-prerelease": "${{github.event.inputs.homebrew-prerelease}}" }'
INPUTS: '{ "change-log": ${{ toJSON(needs.update-api-specs.outputs.change-log) }}, "version-type": "${{needs.update-api-specs.outputs.version-type}}", "homebrew-branch": "${{github.event.inputs.homebrew-branch}}", "homebrew-prerelease": "${{github.event.inputs.homebrew-prerelease}}", "tag-name": "${{ needs.release.outputs.tag-name }}" }'
# notify-complete-fail:
# if: ${{ (needs.cli-token-validation.result != 'failure' || needs.cli-core-token-validation.result != 'failure' ) && (failure() || cancelled()) }}
# needs: [ triggerCliWorkflow ]
Expand Down
Loading
Loading