Skip to content

chore: use organization secrets #14

chore: use organization secrets

chore: use organization secrets #14

Workflow file for this run

name: Push Sonar Metrics
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
jobs:
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install dependencies
run: npm install
- name: Test and coverage
run: npm run cov --maxWorkers=2 --runInBand
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.LIVRO_LIVRE_SONAR_TOKEN }}