-
Notifications
You must be signed in to change notification settings - Fork 6
45 lines (36 loc) · 978 Bytes
/
test-cli.yml
File metadata and controls
45 lines (36 loc) · 978 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: CLI E2E Tests
on:
pull_request:
paths:
- 'src/**'
- 'package.json'
- 'tsconfig.json'
workflow_dispatch:
jobs:
test-e2e:
name: E2E Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up pnpm
uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm run build
- name: Run E2E tests
run: pnpm run test:e2e
env:
ELEVENLABS_API_KEY: ${{ secrets.ELEVENLABS_TEST_API_KEY }}
ELEVENLABS_TEST_API_KEY: ${{ secrets.ELEVENLABS_TEST_API_KEY_SECONDARY }}
- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results
path: coverage/