Fix: Build process includes jest file and breaks type checking #68
This file contains 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: 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 }} |