Skip to content

Commit

Permalink
add circle ci config
Browse files Browse the repository at this point in the history
  • Loading branch information
odanado committed May 15, 2019
1 parent c0e0804 commit 1763136
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
version: 2.1

defaults: &defaults
working_directory: ~/project
executor:
name: node/default
tag: 8.15.1

orbs:
node: circleci/[email protected]

jobs:
install:
<<: *defaults
steps:
- checkout
- node/with-cache:
steps:
- run:
name: Install dependency
command: yarn
cache-key: yarn.lock
- persist_to_workspace:
root: .
paths:
- .
audit:
<<: *defaults
steps:
- attach_workspace:
at: .
- run:
name: Audit
command: yarn audit

workflows:
version: 2
nightly:
triggers:
- schedule:
cron: "0 0 * * *"
filters:
branches: { only: [master] }
jobs:
- install
- audit: { requires: [install] }

0 comments on commit 1763136

Please sign in to comment.