Feat#74/estudio de criacao #2
Workflow file for this run
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
name: Análise de Código | |
on: | |
push: | |
branches: | |
- dev | |
pull_request: | |
branches: | |
- dev | |
jobs: | |
sonarcloud: | |
name: SonarCloud | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Instala dependências | |
run: npm install | |
- name: Executa linter | |
run: npm run lint | |
- name: Executa testes e gera cobertura | |
run: npm run test:all | |
- name: Executa SonarCloud Scan | |
if: ${{ always() }} | |
uses: SonarSource/sonarcloud-github-action@master | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
SONAR_TOKEN: ${{secrets.SONAR_TOKEN}} |