fix: Add edge parameter support for regional authentication (#298) #692
This file contains hidden or 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
| name: Cli Core Tests | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node-version: [lts/*, 22.x, 20.x] | |
| steps: | |
| - name: Checkout cli core repo | |
| 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@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'npm' | |
| - name: Run tests | |
| run: make test | |
| - name: SonarCloud Scan | |
| uses: sonarsource/sonarcloud-github-action@master | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
| notify-complete-fail: | |
| if: ${{ failure() && github.ref == 'refs/heads/main' && github.event_name != 'pull_request' }} | |
| needs: [ test ] | |
| name: Notify Test Failed | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Slack Notification | |
| 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 Core" | |
| SLACK_MESSAGE: 'Cli core tests failed' | |
| MSG_MINIMAL: actions url | |
| SLACK_FOOTER: Posted automatically using GitHub Actions |