Skip to content

Commit

Permalink
Add .circleci/config.yml (#113)
Browse files Browse the repository at this point in the history
* Add .circleci/config.yml

* new circle ci

* good by travis
  • Loading branch information
epugh authored Sep 2, 2022
1 parent 1dd1c2e commit aec1741
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 8 deletions.
47 changes: 47 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Javascript Node CircleCI 2.0 configuration file
#
# Check {{ '/2.0/language-javascript/' | docs_url }} for more details
#
version: 2

defaults: &defaults
working_directory: ~/repo
docker:
- image: cimg/node:14.16.0-browsers

jobs:
test-build:
<<: *defaults
steps:
- checkout

- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
- v1-dependencies-

- run: npm install
- run:
name: Run tests
command: npm test
- run:
name: Run build
command: npm run build

- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}

- persist_to_workspace:
root: ~/repo
paths: .

workflows:
version: 2
test-build-deploy:
jobs:
- test-build:
filters:
tags:
only: /^v.*/
8 changes: 0 additions & 8 deletions .travis.yml

This file was deleted.

0 comments on commit aec1741

Please sign in to comment.