feat: Adds new chunk() method as part of example #13
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: Run Tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| types: | |
| - opened | |
| - reopened | |
| - edited | |
| - synchronize | |
| env: | |
| HUSKY: 0 # Disables husky hooks | |
| concurrency: ${{ github.workflow }}-${{ github.ref }} | |
| jobs: | |
| test: | |
| name: Run All Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@v3 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 9 | |
| run_install: false | |
| - name: Setup Node.js 20.x | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 20.x | |
| cache: "pnpm" | |
| - name: Install Extism | |
| run: | | |
| curl -O https://raw.githubusercontent.com/extism/js-pdk/main/install.sh | |
| bash install.sh | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Build the WASM Pack | |
| run: pnpm build | |
| - name: List out the dist dir (sanity check) | |
| run: ls -la dist | |
| - name: Check extism install | |
| run: extism-js --version | |
| - name: Run Test Suite | |
| run: pnpm test |