Browse Source

👷 add docker

main
Martin 4 years ago
parent
commit
2455ab7f79
  1. 23
      .circleci/config.yml

23
.circleci/config.yml

@ -9,26 +9,6 @@ orbs:
node: circleci/node@4.7
jobs:
# Below is the definition of your job to build and test your app, you can rename and customize it as you want.
build-and-test:
# These next lines define a Docker executor: https://circleci.com/docs/2.0/executor-types/
# You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub.
# A list of available CircleCI Docker Convenience Images are available here: https://circleci.com/developer/images/image/cimg/node
docker:
- image: cimg/node:16.10
# Then run your tests!
# CircleCI will report the results back to your VCS provider.
steps:
# Checkout the code as the first step.
- checkout
# Next, the node orb's install-packages step will install the dependencies from a package.json.
# The orb install-packages step will also automatically cache them for faster future runs.
- node/install-packages:
# If you are using yarn, change the line below from "npm" to "yarn"
pkg-manager: yarn
- run:
name: Run tests
command: yarn test
build: &shared-config
docker:
- image: circleci/node:lts-fermium
@ -98,6 +78,3 @@ workflows:
- lint:
requires:
- build
sample:
jobs:
- build-and-test
Loading…
Cancel
Save