Skip to content

docs: update readme #24

docs: update readme

docs: update readme #24

Workflow file for this run

name: CI - ESLint, Prettier, Tests
on:
push:
branches: [develop, main]
pull_request:
branches: [develop, main]
jobs:
test:
name: Run tests and collect coverage
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 3
- name: Set up Bun
uses: oven-sh/setup-bun@v2
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Run ESLint
run: bunx eslint . --ext .js,.jsx,.ts,.tsx
- name: Run Prettier
run: bunx prettier . --check
- name: Run tests
run: bunx jest --coverage --reporters=jest-junit
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
directory: ${{ github.action_path }}
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
directory: ${{ github.action_path }}
token: ${{ secrets.CODECOV_TOKEN }}