Update README.md #19
This file contains hidden or 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: CI | |
on: | |
push: | |
branches: | |
- dev | |
- main | |
pull_request: | |
branches: | |
- dev | |
- main | |
jobs: | |
lint-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Bun | |
uses: oven-sh/setup-bun@v2 | |
with: | |
bun-version: latest | |
- name: Install dependencies | |
run: bun install | |
- name: Run ESLint | |
run: bun run lint | |
- name: Run TypeScript check | |
run: bun run lint:ts | |
- name: Run tests | |
run: bun run test:run | |
- name: Run test coverage | |
run: bun run test:coverage | |
- name: Build library | |
run: bun run build | |
- name: Check build output | |
run: | | |
ls -lh dist/ | |
echo "✅ Build artifacts created successfully" | |
- name: Upload coverage reports | |
uses: codecov/codecov-action@v4 | |
if: always() | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
fail_ci_if_error: false |