Skip to content

chore: try to add lint #13

chore: try to add lint

chore: try to add lint #13

Workflow file for this run

name: Build
on:
push:
branches:
- develop
- chore/adapt-for-2024-1
pull_request:
types: [opened, synchronize, reopened]
jobs:
sonarcloud:
name: Test Unit & Sonar Scan
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
# - name: Set up Node.js
# uses: actions/setup-node@v3
# with:
# node-version: '18'
# - name: Install dependencies
# run: npm install --legacy-peer-deps
- name: Install dependencies
run: yarn
# - name: Linter
# run: npm run lint:report
# - name: Tests & Coverage
# run: npm run test:cov
- name: Linter
run: yarn eslint . --format json --output-file reports/tslint-report.json
- name: Test and coverage
run: yarn jest --coverage
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}