Skip to content

V2.0.0 Add Typescript support #298

V2.0.0 Add Typescript support

V2.0.0 Add Typescript support #298

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
runs-on: ubuntu-latest
env:
TELNYX_MOCK_OPEN_API_URI: https://raw.githubusercontent.com/team-telnyx/openapi/master/openapi/spec3.json
strategy:
max-parallel: 1 # to make sure proxy server doesn't cause timeout on each individual run
matrix:
node-version: [18.x, 20.x, 22.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: setup-telnyx-prism-mock
run: source ./.github/scripts/before_install.sh
- run: npm ci
- run: npm run build --if-present
- name: Node ${{ matrix.node-version }}
run: npm test