-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* adiciona volumes no docker-compose * adiciona npm run coverage * remove execução dos binários do node_modules * adiciona testes no CI * adiciona coverage no CI * adiciona comando no Makefile * documenta comandos make adicionados
- Loading branch information
1 parent
cba80a1
commit 9b5642a
Showing
6 changed files
with
131 additions
and
12 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,33 @@ | ||
name: coverage report upload | ||
|
||
on: | ||
push: | ||
branches: | ||
- restart | ||
pull_request: | ||
branchs: | ||
- 'feature/**' | ||
- 'hotfix/**' | ||
- 'release/**' | ||
|
||
jobs: | ||
coverage: | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: '12' | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Up firebase | ||
run: make up.firebase | ||
|
||
- name: Make coverage | ||
run: npm run coverage | ||
|
||
- uses: codecov/codecov-action@v1 | ||
with: | ||
file: coverage/coverage-final.json |
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,44 @@ | ||
name: tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- dev | ||
pull_request: | ||
branchs: | ||
- 'feature/**' | ||
- 'hotfix/**' | ||
- 'release/**' | ||
|
||
jobs: | ||
style: | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: '12' | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: check style | ||
run: npm run style:check | ||
|
||
test: | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: '12' | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Up firebase | ||
run: make up.firebase | ||
|
||
- name: Test | ||
run: npm run test |
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 |
---|---|---|
@@ -1,6 +1,32 @@ | ||
all: | ||
make up | ||
build: | ||
docker-compose --build | ||
up: | ||
docker-compose up --detach --force-recreate --renew-anon-volumes --remove-orphans | ||
docker-compose build | ||
|
||
up: | ||
make up $(args) | ||
|
||
up.detach: | ||
docker-compose up --detach --force-recreate --renew-anon-volumes --remove-orphans $(args) | ||
|
||
up.firebase: | ||
docker-compose up --detach idvogados_firebase | ||
|
||
down: | ||
docker-compose down $(args) | ||
|
||
down.volumes: | ||
docker-compose down --volumes | ||
|
||
bash: | ||
docker-compose run idvogados_api bash | ||
|
||
cli: | ||
docker-compose run idvogados_api npm run cli | ||
|
||
tests: | ||
docker-compose run idvogados_api npm run test | ||
|
||
coverage: | ||
docker-compose run idvogados_api npm run coverage | ||
|
||
style.check: | ||
docker-compose run idvogados_api npm run style:check |
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
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
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