fix: Fixes CI to build and test in same step #6
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 & Test the WASM Pack | |
| run: | | |
| pnpm build | |
| pnpm test |