2019-03-18 00:28:01 +08:00
|
|
|
version: 2
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
docker:
|
2022-10-25 19:13:13 +08:00
|
|
|
- image: cimg/python:3.9-node
|
2019-03-18 00:28:01 +08:00
|
|
|
steps:
|
|
|
|
- checkout
|
2021-04-14 02:04:55 +08:00
|
|
|
- run:
|
|
|
|
name: 'Install packages'
|
|
|
|
command: sudo apt-get update && sudo apt-get install libsecret-1-dev libxkbfile-dev
|
2019-03-18 00:28:01 +08:00
|
|
|
- restore_cache:
|
|
|
|
name: Restore Package Cache
|
|
|
|
keys:
|
|
|
|
- npm-packages-{{ checksum "package-lock.json" }}-{{ checksum "app/package-lock.json" }}
|
|
|
|
- run:
|
|
|
|
name: Install Dependencies
|
|
|
|
command: npm install
|
|
|
|
- save_cache:
|
|
|
|
name: Save Yarn Package Cache
|
|
|
|
key: npm-packages-{{ checksum "package-lock.json" }}-{{ checksum "app/package-lock.json" }}
|
|
|
|
paths:
|
|
|
|
- node_modules
|
|
|
|
- app/node_modules
|
|
|
|
- run: npm run lint
|
2019-03-18 00:32:21 +08:00
|
|
|
workflows:
|
|
|
|
version: 2
|
|
|
|
test:
|
|
|
|
jobs:
|
|
|
|
- test
|