Document libpg_query C Functions and WASM Wrapper Improvements #26
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
| name: CI π | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| push: | |
| branches: [main, master] | |
| workflow_dispatch: | |
| jobs: | |
| build-wasm: | |
| name: Build WASM π§ | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository π₯ | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js π | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20.x' | |
| cache: 'yarn' | |
| - name: Install Dependencies π§Ά | |
| run: yarn install | |
| - name: Build WASM π | |
| run: npm run wasm:build | |
| - name: Upload WASM Artifacts π¦ | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: wasm-artifacts | |
| path: wasm/ | |
| retention-days: 1 | |
| test: | |
| name: Test on ${{ matrix.os }} ${{ matrix.os == 'ubuntu-latest' && 'π§' || matrix.os == 'macos-latest' && 'π' || 'πͺ' }} | |
| needs: build-wasm | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| fail-fast: false | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout Repository π₯ | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js π | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20.x' | |
| cache: 'yarn' | |
| - name: Install Dependencies π§Ά | |
| run: yarn install | |
| - name: Download WASM Artifacts π₯ | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: wasm-artifacts | |
| path: wasm/ | |
| - name: Run Tests π | |
| run: yarn test |