mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 09:27:13 +00:00
add circleCI
This commit is contained in:
parent
f84ec1afa3
commit
6c8b5e4714
35
.circleci/config.yml
Executable file
35
.circleci/config.yml
Executable file
@ -0,0 +1,35 @@
|
|||||||
|
version: 2
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
working_directory: /usr/src/app
|
||||||
|
docker:
|
||||||
|
- image: banian/node
|
||||||
|
steps:
|
||||||
|
# Checkout repository
|
||||||
|
- checkout
|
||||||
|
|
||||||
|
# Restore cache
|
||||||
|
- restore_cache:
|
||||||
|
key: yarn-{{ checksum "yarn.lock" }}
|
||||||
|
|
||||||
|
# Install dependencies
|
||||||
|
- run:
|
||||||
|
name: Install Dependencies
|
||||||
|
command: NODE_ENV=dev yarn
|
||||||
|
|
||||||
|
# Keep cache
|
||||||
|
- save_cache:
|
||||||
|
key: yarn-{{ checksum "yarn.lock" }}
|
||||||
|
paths:
|
||||||
|
- "node_modules"
|
||||||
|
|
||||||
|
# Build
|
||||||
|
- run:
|
||||||
|
name: Build
|
||||||
|
command: |
|
||||||
|
yarn build
|
||||||
|
|
||||||
|
# Test
|
||||||
|
- run:
|
||||||
|
name: Tests
|
||||||
|
command: yarn test && yarn coverage
|
Loading…
Reference in New Issue
Block a user