feat: Integração com Grafana e entrega completa do plugin MeasureSoftGram (US12) #10
This file contains hidden or 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: Rodar Testes | |
| on: | |
| push: | |
| branches: [ main, develop ] | |
| pull_request: | |
| branches: [ main, develop ] | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Instalar dependências | |
| run: npm run install:all | |
| - name: Compilar extensão | |
| run: npm run compile | |
| - name: Rodar testes da extensão com cobertura | |
| run: npm run test:coverage | |
| - name: Rodar testes da webview com cobertura | |
| run: cd webview-ui && npm run test:coverage | |
| - name: Scanner do SonarCloud | |
| uses: SonarSource/sonarqube-scan-action@v6 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |