1
1
mirror of https://github.com/leon-ai/leon.git synced 2024-12-20 23:31:30 +03:00
leon/.github/workflows/tests.yml
Divlo 2f66f1c17b
refactor: prerequisites Node.js >= 16.0.0 and npm >= 8.0.0 (#322)
BREAKING CHANGE: minimum supported Node.js v16.0.0 and npm v8.0.0
2021-11-07 10:24:00 +08:00

47 lines
897 B
YAML

name: Tests
on:
push:
branches: [master, develop]
pull_request:
branches: [master, develop]
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Python
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: 16.x
cache: npm
- name: Install Pipenv
run: pip install --upgrade pip && pip install pipenv
- name: Install
run: npm install
- name: Run JSON tests
run: npm run test:json
- name: Run E2E tests
run: npm run test:e2e
- name: Install offline STT
run: npm run setup:offline-stt
- name: Install offline TTS
run: npm run setup:offline-tts
- name: Run unit tests
run: npm run test:unit