Skip to content

Templates Issues e PR #21

Templates Issues e PR

Templates Issues e PR #21

Workflow file for this run

name: Análise de Código
on:
workflow_dispatch:
push:
branches:
- master
- dev
pull_request:
branches:
- master
- dev
jobs:
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Instala dependências
run: yarn install
- name: Executa linter
run: yarn lint
- name: Executa testes e gera cobertura
run: yarn test:all
env:
URL_USER_SERVICE: ${{secrets.URL_USER_SERVICE}}
URL_PRINTER_SERVICE: ${{secrets.URL_PRINTER_SERVICE}}
URL_CONTRACT_SERVICE: ${{secrets.URL_CONTRACT_SERVICE}}
URL_SCHEDULER_SERVICE: ${{secrets.URL_SCHEDULER_SERVICE}}
- name: Executa SonarCloud Scan
if: ${{ always() }}
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
SONAR_TOKEN: ${{secrets.SONAR_TOKEN}}
URL_USER_SERVICE: ${{secrets.URL_USER_SERVICE}}
URL_PRINTER_SERVICE: ${{secrets.URL_PRINTER_SERVICE}}
URL_SCHEDULER_SERVICE: ${{secrets.URL_SCHEDULER_SERVICE}}