docs: updated badges and swagger docs #366
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: DEV_CI | |
on: | |
push: | |
branches: | |
- dev | |
pull_request: | |
branches: | |
- dev | |
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@v3 | |
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@v4 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |