Skip to content

Commit

Permalink
manually run pretest hook in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
JaneJeon committed Jul 11, 2020
1 parent 1c0758e commit 29a450e
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,21 @@ orbs:
node: circleci/node@3
slack: circleci/slack@3

jobs:
lint:
aliases:
- &runner
executor:
name: node/default
- &install
node/install-packages:
include-branch-in-cache-key: false
override-ci-command: npm ci --prefer-offline --no-audit

jobs:
lint:
<<: *runner
steps:
- checkout
- node/install-packages
- *install
- run:
name: Lint (Prettier)
command: npm run lint:prettier
Expand All @@ -23,15 +31,18 @@ jobs:
parameters:
test-suite:
type: string
executor:
name: node/default
<<: *runner
steps:
- checkout
- node/install-packages
- *install
- setup_remote_docker
- run:
# todo: do we need to stand up containers even for frontend?
name: Stand up containers
command: docker-compose up -d
- run:
name: Build
command: npm run pretest
- run:
name: Test
command: npm run test:nowatch:<< parameters.test-suite >> -- --ci --runInBand --reporters=default --reporters=jest-junit
Expand Down

0 comments on commit 29a450e

Please sign in to comment.