Skip to content

Commit

Permalink
fe|FEAT: Add circleCI configuration (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaveira3 authored and joserenatosilva committed Sep 24, 2019
1 parent c74f41c commit f0bdefc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 20 deletions.
9 changes: 1 addition & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,9 @@ version: 2
jobs:
build:
docker:
- image: circleci/golang:1.11

working_directory: /go/src/github.com/globocom/huskyCI-dashboard

- image: circleci/node
steps:
- checkout
- run:
name: "Tests"
command: |
make test
- run:
name: "Check security using Yarn Audit"
command: |
Expand Down
17 changes: 5 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
.SILENT:
.DEFAULT_GOAL := help

NPM ?= $(shell which npm)
YARN ?= $(shell which yarn)
PKG_MANAGER ?= $(if $(YARN),$(YARN),$(NPM))

COLOR_RESET = \033[0m
COLOR_COMMAND = \033[36m
COLOR_YELLOW = \033[33m
Expand All @@ -15,22 +11,19 @@ PROJECT := huskyCI-dashboard

## Installs locally using install command.
install:
@${PKG_MANAGER} install
yarn install

## Runs locally using start command.
run:
@${PKG_MANAGER} start
yarn start

## Checks for vulnerabilities using audit command.
check-sec:
@${PKG_MANAGER} audit

## Runs unit tests using test command.
unit:
@${PKG_MANAGER} test
yarn audit

## Runs a full test into project.
test: unit
test:
yarn test

## Shows this help message.
help:
Expand Down

0 comments on commit f0bdefc

Please sign in to comment.