docs: update README with bun, correct URLs, and contribution guidelines #24
Workflow file for this run
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
| # .github/workflows/ci.yml | |
| name: CI | |
| on: [push, pull_request] | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: oven-sh/setup-bun@v1 | |
| - run: bun install | |
| - run: bun lint | |
| format: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: oven-sh/setup-bun@v1 | |
| - run: bun install | |
| - run: bun format | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: oven-sh/setup-bun@v1 | |
| - run: bun install | |
| - run: bun test | |
| commitlint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 # Required to get full commit history | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v1 | |
| - name: Install dependencies | |
| run: bun install | |
| - name: Lint last commit (push) | |
| if: github.event_name == 'push' | |
| run: | | |
| npx commitlint --from HEAD~1 --to HEAD --verbose | |
| - name: Lint PR commits | |
| if: github.event_name == 'pull_request' | |
| run: | | |
| npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose |