Skip to content

Commit

Permalink
Merge pull request #246 from moul/dev/moul/circle
Browse files Browse the repository at this point in the history
feat: test web on CI
  • Loading branch information
moul authored Feb 21, 2020
2 parents 786529c + 116d5a3 commit a360d3a
Show file tree
Hide file tree
Showing 3 changed files with 159 additions and 1,385 deletions.
20 changes: 20 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,29 @@ version: 2.1
orbs:
moul: moul/[email protected] # https://github.com/moul/build

jobs:
web:
working_directory: ~/depviz
docker:
- image: circleci/node:10
steps:
- checkout
- run: sudo npm install -g npm@latest
- restore_cache:
key: dependency-cache-{{ checksum "web/package-lock.json" }}
- run: cd web && npm install
- save_cache:
key: dependency-cache-{{ checksum "web/package-lock.json" }}
paths:
- ./web/node_modules
- run: "cd web && npm run build"
- run: "cd web && npm run test:CI"
- run: "cd web && npm run lint"

workflows:
main:
jobs:
- moul/golang-build:
gopkg: moul.io/depviz
- moul/docker-build
- web
4 changes: 2 additions & 2 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"remove-dist": "rimraf ./dist",
"prebuild": "npm run clean-dist",
"build": "babel-node tools/build.js",
"test": "jest",
"test:CI": "jest",
"test": "jest --passWithNoTests",
"test:CI": "jest --passWithNoTests",
"test:cover": "npm run test -- --coverage ",
"test:cover:CI": "npm run test:CI -- --coverage && cat ./coverage/lcov.info | node_modules/coveralls/bin/coveralls.js",
"test:watch": "jest --watchAll",
Expand Down
Loading

0 comments on commit a360d3a

Please sign in to comment.