Skip to content

Commit

Permalink
feat: add ci pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
libterty committed Dec 22, 2020
1 parent d42dfee commit 28344a4
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
version: 2.1

orbs:
node: circleci/node@3.0.1

jobs:
build:
working_directory: ~/one-piece-gateway
executor: node/default
steps:
- checkout
- node/install-npm
- node/install-packages:
app-dir: ~/one-piece-gateway
cache-path: node_modules
override-ci-command: sudo npm i
- persist_to_workspace:
root: .
paths:
- .

test:
docker:
- image: cimg/node:current
steps:
- attach_workspace:
at: .
- run:
# no test yet
name: Test
command: sudo npm run build

workflows:
version: 2
build_and_test:
jobs:
- build
- test:
requires:
- build

0 comments on commit 28344a4

Please sign in to comment.