Skip to content

chore: added chathub related files #63

chore: added chathub related files

chore: added chathub related files #63

Workflow file for this run

name: ON_PUSH
on:
push:
branches:
- "feat/**"
- "fix/**"
- "patch/**"
- "chore/**"
env:
STORE_PATH:
HUSKY: 0
jobs:
cache-and-install:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
os: [ubuntu-latest]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install NodeJs
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Getting pnpm store
run: echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Mounting pnpm cache
uses: actions/cache@v4
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: ${{ runner.os }}-pnpm-store-
- name: Install Dependencies
run: pnpm install --ignore-scripts
- name: Lint Code
run: pnpm run -r lint
- name: Check Unused Dependencies
run: pnpm run -r depcruiser
- name: Check Unused Exports
run: pnpm run -r ts-unused-exports
- name: Build Check
run: pnpm run -r build
- name: Unit & Coverage Tests
run: |
pnpm run -r test
pnpm run -r test:cov
- name: Upload Coverage Reports To Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}