Skip to content

feat: add readme & terms of services & privacy policy - [CU-869bfzfx7] #938

feat: add readme & terms of services & privacy policy - [CU-869bfzfx7]

feat: add readme & terms of services & privacy policy - [CU-869bfzfx7] #938

name: Code Style & Quality Checks
on:
pull_request:
branches: [main, dev]
types: [opened, synchronize, reopened, ready_for_review]
permissions:
contents: read
pull-requests: write
issues: write
jobs:
style-quality:
if: github.event.pull_request.draft == false
name: Code Style & Quality
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- name: Set up pnpm
run: corepack prepare pnpm@latest --activate
- name: Add pnpm to PATH
run: echo "/home/btngana/.local/share/pnpm" >> $GITHUB_PATH
- uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
cache-dependency-path: '**/pnpm-lock.yaml'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run Formatter
run: pnpm run format:check
- name: Run Linter
run: pnpm run lint:check
- name: Run Unit Tests
run: pnpm run test:cov
- name: Comment Coverage on PR
uses: romeovs/lcov-reporter-action@v0.4.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
lcov-file: ./coverage/lcov.info
filter-changed-files: true
delete-old-comments: true
title: Unit Tests Coverage Report