Skip to content

Commit

Permalink
fix: make ci work
Browse files Browse the repository at this point in the history
  • Loading branch information
juliuscc committed Apr 7, 2023
1 parent 4a89801 commit 818fe92
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 21 deletions.
31 changes: 11 additions & 20 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,26 @@
version: 2
jobs:
build:
lint-and-test:
docker:
- image: cimg/node:18.3.0
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: install
name: Install Dependencies
command: npm install
- save_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
paths:
- ./node_modules
test:
docker:
- image: cimg/node:18.3.0
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: Lint test
command: npm run lint
- run:
name: Run tests
command: npm test
command: npm run test
- save_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
paths:
- ./node_modules

deploy:
docker:
- image: cimg/node:18.3.0
Expand All @@ -40,15 +34,12 @@ jobs:

workflows:
version: 2
build-test-deploy:
lint-test-deploy:
jobs:
- build
- test:
requires:
- build
- lint-and-test
- deploy:
requires:
- test
- lint-and-test
filters:
branches:
only:
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 818fe92

Please sign in to comment.