Skip to content

Update build.yml

Update build.yml #5

Workflow file for this run

name: SonarCloud Analysis
on:
push:
branches:
- main
jobs:
sonarcloud:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install dependencies
run: npm install
- name: Run tests with coverage
run: npm run test --coverage
- name: Debug
run: |
echo "Debug information..."
# Add any additional commands to print information for debugging
- name: SonarCloud Analysis
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}