-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
WesleyCharlesBlake
committed
Mar 13, 2019
1 parent
e4e71c2
commit 1ac0bff
Showing
2 changed files
with
81 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
version: 2.1 | ||
executors: | ||
base-node: | ||
environment: | ||
FOO: bar | ||
docker: | ||
- image: poetapp/base:10.14.2-alpine | ||
|
||
jobs: | ||
build: | ||
executor: base-node | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
key: v1-{{ checksum "package-lock.json" }} | ||
- run: | ||
name: Install deps | ||
command: npm install | ||
- save_cache: | ||
key: v1-{{ checksum "package-lock.json" }} | ||
paths: | ||
- ./node_modules | ||
|
||
lint: | ||
executor: base-node | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
key: v1-{{ checksum "package-lock.json" }} | ||
- run: | ||
name: Lint | ||
command: npm run lint | ||
|
||
package: | ||
executor: base-node | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
key: v1-{{ checksum "package-lock.json" }} | ||
- run: | ||
name: Build dist | ||
command: npm run build | ||
|
||
coverage: | ||
executor: base-node | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
key: v1-{{ checksum "package-lock.json" }} | ||
- run: | ||
name: Build dist | ||
command: npm run coverage | ||
|
||
release: | ||
executor: base-node | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
key: v1-{{ checksum "package-lock.json" }} | ||
- run: | ||
name: Build dist | ||
command: npx semantic-release | ||
|
||
workflows: | ||
version: 2 | ||
build_and_test: | ||
jobs: | ||
- build | ||
- lint: | ||
requires: | ||
- build | ||
- package: | ||
requires: | ||
- build | ||
- release: | ||
context: semver | ||
requires: | ||
- package | ||
filters: | ||
branches: | ||
only: master |
This file was deleted.
Oops, something went wrong.