feat: add credits to the readme #43
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: Test & Build Package | |
| on: | |
| push: | |
| branches: [master, main] | |
| pull_request: | |
| branches: [master, main] | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node: ["lts/*"] | |
| name: Test on node@v${{ matrix.node }} | |
| steps: | |
| - name: Checkout 🛎️ | |
| uses: actions/checkout@v5 | |
| - name: Setup pnpm 🔧 | |
| uses: pnpm/action-setup@v4 | |
| - name: Setup Node.js 🔧 | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| check-latest: true | |
| cache: "pnpm" | |
| - name: Install dependencies 🪄 | |
| run: pnpm install --frozen-lockfile | |
| - name: Lint 🔍 | |
| run: pnpm run lint | |
| - name: TypeScript 🔍 | |
| run: pnpm run check | |
| - name: Vitest 🔍 | |
| run: pnpm run spec | |
| - name: Upload coverage to Codecov 📊 | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| files: ./coverage/coverage-final.json | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node: ["lts/*"] | |
| name: Build on node@v${{ matrix.node }} | |
| steps: | |
| - name: Checkout 🛎️ | |
| uses: actions/checkout@v5 | |
| - name: Setup pnpm 🔧 | |
| uses: pnpm/action-setup@v4 | |
| - name: Setup node 🔧 | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| check-latest: true | |
| cache: "pnpm" | |
| - name: Install 🪄 | |
| run: pnpm install --frozen-lockfile | |
| - name: Build 💎 | |
| run: pnpm run build |