Skip to content

feat: swagger docs & improvement tests #4

feat: swagger docs & improvement tests

feat: swagger docs & improvement tests #4

Workflow file for this run

on:
# Trigger analysis when pushing to your main branches, and when creating a pull request.
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
name: Sonnar Scan
jobs:
sonarqube:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '21.7.1' # Adjust to your desired Node.js version
- name: Install dependencies
run: npm install
- name: Run tests
run: npm test -- --coverage
- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST }}