I’m using Github Actions, to make sure code coverage is calculated on SonarCloud
The project is Typescript only
jest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install modules
run: npm install
- name: Run tests
run: npm run test
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SonarCloud seems to analyse my push’s.
https://sonarcloud.io/project/activity?id=firecow_node-filebeat-logger
SonarCloud is telling me my main branch doesn’t contain any lines of code, and because of this doesn’t let the project pass the Quality Gate
https://sonarcloud.io/dashboard?id=firecow_node-filebeat-logger
I’ve tried deleting on SonarCloud and recreate.
I’ve added SONAR_TOKEN under Github Project Settings
Here is the source code.
https://github.com/firecow/node-filebeat-logger
I’m lost, and I need help
What am I doing wrong here ?