Skip to content

Fix: Build process includes jest file and breaks type checking #68

Fix: Build process includes jest file and breaks type checking

Fix: Build process includes jest file and breaks type checking #68

Workflow file for this run

name: Check Code Quality
on:
pull_request:
branches: [main, master, develop]
push:
branches: [main, master]
jobs:
lint-and-tests:
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Use Node.js Version 16.x
uses: actions/setup-node@v2
with:
node-version: 16.14.x
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Type check
run: yarn typecheck
- name: Lint
run: yarn lint
- name: Check circular dependencies
run: yarn circular
- name: Run Jest Unit Tests
run: yarn test
- name: Typescript build
run: yarn prepack
- name: SonarCloud Scan Typescript
run: yarn sonar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}