SonarCloud integration #49
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: SonarCloud | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
types: [opened, synchronize, reopened] | |
workflow_dispatch: | |
jobs: | |
build: | |
name: SonarCloud | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
with: | |
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | |
lfs: true | |
- name: Set up Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: 16.17 | |
- name: Enable corepack | |
run: corepack enable yarn | |
- name: Install dependencies | |
run: yarn install | |
- name: Run tsc | |
run: yarn run tsc --noEmit | |
- name: Lint and report | |
run: yarn lint:ci:report | |
continue-on-error: true | |
- name: Test and coverage | |
run: yarn test:coverage | |
- name: List files | |
run: ls -la | |
- name: Print ESLint report | |
run: cat eslint-report.json | |
- name: ScanCloud Scan | |
uses: SonarSource/sonarcloud-github-action@master | |
env: | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }} |