mirror of
https://github.com/vale981/tridactyl
synced 2025-03-04 17:11:40 -05:00
42 lines
879 B
YAML
42 lines
879 B
YAML
version: 2.1
|
|
commands:
|
|
commoncmd:
|
|
steps:
|
|
- checkout
|
|
- restore_cache:
|
|
keys:
|
|
- dependency-cache-{{ checksum "package.json" }}
|
|
- run: yarn install --frozen-lockfile
|
|
- save_cache:
|
|
key: dependency-cache-{{ checksum "package.json" }}
|
|
paths:
|
|
- ./node_modules
|
|
jobs:
|
|
lint:
|
|
docker:
|
|
- image: circleci/node:latest
|
|
steps:
|
|
- run: sudo apt update
|
|
- run: sudo apt install -qq shellcheck
|
|
- commoncmd
|
|
- run: bash -c './ci/lint.sh'
|
|
unit:
|
|
docker:
|
|
- image: circleci/node:latest
|
|
steps:
|
|
- commoncmd
|
|
- run: bash -c './ci/unit.sh'
|
|
mozilla:
|
|
docker:
|
|
- image: circleci/node:latest
|
|
steps:
|
|
- commoncmd
|
|
- run: bash -c 'ci/mozilla.sh'
|
|
|
|
workflows:
|
|
version: 2
|
|
build_test_lint:
|
|
jobs:
|
|
- lint
|
|
- mozilla
|
|
- unit
|