-
Notifications
You must be signed in to change notification settings - Fork 3
28 lines (26 loc) · 930 Bytes
/
pull-request.yml
File metadata and controls
28 lines (26 loc) · 930 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Pull Request
on:
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'
cache: 'npm'
- run: npm ci
# Install peer dependencies for build
- name: Install peer dependencies
run: |
# Install cloud dependencies for build and testing
npm install microsoft-cognitiveservices-speech-sdk@^1.43.1 @google-cloud/text-to-speech@^6.0.1 @aws-sdk/client-polly@^3.799.0 openai@^4.97.0
# Install SherpaOnnx dependencies except the platform-specific binary
npm install decompress@^4.2.1 decompress-bzip2@^4.0.0 decompress-tarbz2@^4.1.1 decompress-targz@^4.1.1 tar-stream@^3.1.7
- run: npm run build
- run: npm run lint
- run: npm test
# We don't run TTS tests on PRs since they require credentials