This repository was archived by the owner on Jan 11, 2026. It is now read-only.
Feat/allow switching between windows defender and clamav (#927) #1
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: SonarCloud analysis | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| sonar_analysis: | |
| runs-on: windows-latest | |
| timeout-minutes: 10 | |
| permissions: | |
| contents: read | |
| packages: read | |
| pull-requests: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| registry-url: 'https://npm.pkg.github.com' | |
| - name: Create .npmrc file | |
| run: | | |
| touch .npmrc | |
| echo "@internxt:registry=https://npm.pkg.github.com" >> .npmrc | |
| echo //npm.pkg.github.com/:_authToken=${{ secrets.PERSONAL_ACCESS_TOKEN }} >> .npmrc | |
| echo "always-auth=true" >> .npmrc | |
| - name: Install dependencies | |
| run: npm run init:ci | |
| - name: Run tests | |
| run: npm run test:cov | |
| - name: SonarCloud Scan | |
| uses: SonarSource/sonarcloud-github-action@master | |
| env: | |
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |