contribution docs #11
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: [ main, dev ] | |
| pull_request: | |
| branches: [ main, dev ] | |
| jobs: | |
| build_and_test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: 'npm' | |
| - name: Install Library Cache | |
| run: npm install | |
| - name: Build Library | |
| run: npm run build | |
| - name: Run Library Tests | |
| run: npm test | |
| - name: Build Next.js Example | |
| run: | | |
| cd examples/nextjs-example | |
| npm install | |
| npm run build | |
| - name: Build Vite Example | |
| run: | | |
| cd examples/vite-example | |
| npm install | |
| npm run build |