mirror of
https://github.com/gosticks/dash-player.git
synced 2025-10-16 11:55:36 +00:00
39 lines
889 B
YAML
39 lines
889 B
YAML
version: 2.1
|
|
|
|
orbs:
|
|
python: circleci/python@1.5.0
|
|
browser-tools: circleci/browser-tools@1.4.1
|
|
node: circleci/node@5.0.3
|
|
|
|
jobs:
|
|
test-and-lint:
|
|
docker:
|
|
- image: cimg/python:3.9
|
|
steps:
|
|
- node/install
|
|
- browser-tools/install-chrome
|
|
- browser-tools/install-chromedriver
|
|
- checkout
|
|
- python/install-packages:
|
|
pkg-manager: pip
|
|
pip-dependency-file: requirements-dev.txt
|
|
- run:
|
|
name: Lint with flake8
|
|
command: npm run lint
|
|
- run:
|
|
name: Build package
|
|
command: |
|
|
npm install
|
|
npm run build
|
|
- run:
|
|
name: Run tests
|
|
command: npm run test -- --headless
|
|
- run:
|
|
name: Run tests using React 18
|
|
command: REACT_VERSION=18.2.0 npm run test -- --headless
|
|
|
|
workflows:
|
|
run-tests:
|
|
jobs:
|
|
- test-and-lint
|