diff --git a/.github/workflows/acceptance-tests.yml b/.github/workflows/acceptance-tests.yml index 702a7a769..2e30ffecd 100644 --- a/.github/workflows/acceptance-tests.yml +++ b/.github/workflows/acceptance-tests.yml @@ -46,7 +46,7 @@ jobs: continue-on-error: true strategy: matrix: - node-version: [ 16.x, 14.x, 12.x, 10.x ] + node-version: [ 18.x, 16.x, 14.x ] outputs: ACCEPTANCE_FAILURE_TAG: ${{ steps.failure_brew.outputs.FAILURE_TAG_BREW }} steps: diff --git a/.github/workflows/audit-check-job.yml b/.github/workflows/audit-check-job.yml new file mode 100644 index 000000000..6462c3214 --- /dev/null +++ b/.github/workflows/audit-check-job.yml @@ -0,0 +1,74 @@ +name: Audit check job +on: + schedule: + - cron: '30 14 * * *' + - cron: '30 14 * * 3' +jobs: + audit-prod: + if: github.event.schedule == '30 14 * * *' + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + node-version: [18.x, 16.x, 14.x] + steps: + - name: Checkout cli repo + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - run: make install + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - name: Run audit check + run: npm audit --production + - name: Notify Npm Audit Failed + if: ${{ failure() && github.ref == 'refs/heads/main' }} + uses: rtCamp/action-slack-notify@v2 + env: + SLACK_WEBHOOK: ${{ secrets.ALERT_SLACK_WEB_HOOK }} + SLACK_COLOR: 'danger' + SLACK_USERNAME: CLI Github Actions + SLACK_MSG_AUTHOR: twilio-dx + SLACK_ICON_EMOJI: ':github:' + SLACK_TITLE: "Twilio Cli" + SLACK_MESSAGE: 'Cli daily production audit test failed' + MSG_MINIMAL: actions url + SLACK_FOOTER: Posted automatically using GitHub Actions + + audit-dev: + if: github.event.schedule == '30 14 * * 3' + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + node-version: [ 18.x, 16.x, 14.x ] + steps: + - name: Checkout cli repo + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - run: make install + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - name: Run audit check + run: npm audit --dev + + - name: Notify Npm Audit Failed + if: ${{ failure() && github.ref == 'refs/heads/main' }} + uses: rtCamp/action-slack-notify@v2 + env: + SLACK_WEBHOOK: ${{ secrets.ALERT_SLACK_WEB_HOOK }} + SLACK_COLOR: 'warning' + SLACK_USERNAME: CLI Github Actions + SLACK_MSG_AUTHOR: twilio-dx + SLACK_ICON_EMOJI: ':github:' + SLACK_TITLE: "Twilio Cli" + SLACK_MESSAGE: 'Cli weekly dev audit test failed' + MSG_MINIMAL: actions url + SLACK_FOOTER: Posted automatically using GitHub Actions diff --git a/.github/workflows/cli-audit.yml b/.github/workflows/cli-audit.yml index c8d3e86a6..e1cf3f9ed 100644 --- a/.github/workflows/cli-audit.yml +++ b/.github/workflows/cli-audit.yml @@ -10,7 +10,7 @@ jobs: strategy: fail-fast: false matrix: - node-version: [16.x, 14.x, 12.x, 10.x] + node-version: [18.x, 16.x, 14.x] steps: - name: Checkout cli repo uses: actions/checkout@v2 diff --git a/.github/workflows/cli-test-npm.yml b/.github/workflows/cli-test-npm.yml index 147de761f..0186912a1 100644 --- a/.github/workflows/cli-test-npm.yml +++ b/.github/workflows/cli-test-npm.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [16.x, 14.x, 12.x, 10.x] + node-version: [18.x, 16.x, 14.x] steps: - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v2 diff --git a/.github/workflows/cli-test.yml b/.github/workflows/cli-test.yml index c5a3956bf..810167c02 100644 --- a/.github/workflows/cli-test.yml +++ b/.github/workflows/cli-test.yml @@ -10,7 +10,7 @@ jobs: strategy: fail-fast: false matrix: - node-version: [ 16.x, 14.x, 12.x, 10.x ] + node-version: [ 18.x, 16.x, 14.x] steps: - name: Checkout cli repo uses: actions/checkout@v2 diff --git a/.github/workflows/draft-release.yml b/.github/workflows/draft-release.yml index d06d29f27..0f31893ba 100644 --- a/.github/workflows/draft-release.yml +++ b/.github/workflows/draft-release.yml @@ -21,7 +21,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [16.x, 14.x, 12.x, 10.x] + node-version: [18.x, 16.x, 14.x] steps: - name: Checkout cli repo uses: actions/checkout@v2 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 04c191d5d..c17bf063f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [16.x, 14.x, 12.x, 10.x] + node-version: [18.x, 16.x, 14.x] steps: - name: Checkout cli repo uses: actions/checkout@v2 diff --git a/README.md b/README.md index c5bb87cf0..1b8220fa1 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,9 @@ [![Travis Build Status](https://travis-ci.com/twilio/twilio-cli.svg?branch=main)](https://travis-ci.com/twilio/twilio-cli.svg?branch=main) [![codecov](https://codecov.io/gh/twilio/twilio-cli/branch/main/graph/badge.svg)](https://codecov.io/gh/twilio/twilio-cli) [![Learn with TwilioQuest](https://img.shields.io/static/v1?label=TwilioQuest&message=Learn%20to%20contribute%21&color=F22F46&labelColor=1f243c&style=flat-square&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAAASFBMVEUAAAAZGRkcHBwjIyMoKCgAAABgYGBoaGiAgICMjIyzs7PJycnMzMzNzc3UoBfd3d3m5ubqrhfrMEDu7u739/f4vSb/3AD///9tbdyEAAAABXRSTlMAAAAAAMJrBrEAAAKoSURBVHgB7ZrRcuI6EESdyxXGYoNFvMD//+l2bSszRgyUYpFAsXOeiJGmj4NkuWx1Qeh+Ekl9DgEXOBwOx+Px5xyQhDykfgq4wG63MxxaR4ddIkg6Ul3g84vCIcjPBA5gmUMeXESrlukuoK33+33uID8TWeLAdOWsKpJYzwVMB7bOzYSGOciyUlXSn0/ABXTosJ1M1SbypZ4O4MbZuIDMU02PMbauhhHMHXbmebmALIiEbbbbbUrpF1gwE9kFfRNAJaP+FQEXCCTGyJ4ngDrjOFo3jEL5JdqjF/pueR4cCeCGgAtwmuRS6gDwaRiGvu+DMFwSBLTE3+jF8JyuV1okPZ+AC4hDFhCHyHQjdjPHUKFDlHSJkHQXMB3KpSwXNGJPcwwTdZiXlRN0gSp0zpWxNtM0beYE0nRH6QIbO7rawwXaBYz0j78gxjokDuv12gVeUuBD0MDi0OQCLvDaAho4juP1Q/jkAncXqIcCfd+7gAu4QLMACCLxpRsSuQh0igu0C9Svhi7weAGZg50L3IE3cai4IfkNZAC8dfdhsUD3CgKBVC9JE5ABAFzg4QL/taYPAAWrHdYcgfLaIgAXWJ7OV38n1LEF8tt2TH29E+QAoDoO5Ve/LtCQDmKM9kPbvCEBApK+IXzbcSJ0cIGF6e8gpcRhUDogWZ8JnaWjPXc/fNnBBUKRngiHgTUSivSzDRDgHZQOLvBQgf8rRt+VdBUUhwkU6VpJ+xcOwQUqZr+mR0kvBUgv6cB4+37hQAkXqE8PwGisGhJtN4xAHMzrsgvI7rccXqSvKh6jltGlrOHA3Xk1At3LC4QiPdX9/0ndHpGVvTjR4bZA1ypAKgVcwE5vx74ulwIugDt8e/X7JgfkucBMIAr26ndnB4UCLnDOqvteQsHlgX9N4A+c4cW3DXSPbwAAAABJRU5ErkJggg==)](https://twil.io/learn-open-source) +## Requirements +Currently, Node 14+ is supported. We support the [LTS versions](https://nodejs.org/en/about/releases) of Node. + ## Setup Head over to the [Twilio CLI documentation](https://www.twilio.com/docs/twilio-cli/quickstart). diff --git a/package.json b/package.json index c8df189d0..cf93f3b7b 100644 --- a/package.json +++ b/package.json @@ -84,7 +84,7 @@ "ngrok": "^3.2.7" }, "engines": { - "node": ">=10.12.0" + "node": ">=14.0.0" }, "oclif": { "commands": "./src/commands",