Skip to content

fixed lint issues

fixed lint issues #32

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
branches:
- main
jobs:
CI:
strategy:
matrix:
node-version: [18.x]
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Set up nodejs version ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Clean Cache
run: npm cache clean --force
- name: Install package
run: npm install
- name: Build
run: npm run build --if-present
- name: Test
run: npm run test
- name: CodeClimate Scan
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageLocations: |
${{github.workspace}}/coverage/*.info:lcov
${{github.workspace}}/coverage/clover.xml:clover
debug: true
- name: Snyk Scan
uses: snyk/actions/node@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
command: monitor
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
with:
args: >
-Dsonar.host.url=https://sonarcloud.io
-Dsonar.organization=santoshshinde2012
-Dsonar.projectKey=santoshshinde2012_jest-to-sonar
-Dsonar.projectName=jest-to-sonar
-Dsonar.projectVersion=1.0
-Dsonar.language=ts
-Dsonar.sources=.
-Dsonar.tests=tests
-Dsonar.test.inclusions=tests/**/*.ts
-Dsonar.coverage.exclusions=**/tests/**/*.ts,node_modules/*,coverage/lcov-report/*
-Dsonar.javascript.lcov.reportPaths=./coverage/lcov.info
-Dsonar.testExecutionReportPaths=./coverage/sonar-report.xml
-Dsonar.sourceEncoding=UTF-8
-Dsonar.verbose=false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}