Add support for node-thermal-printer by solving issue with buffer ref not working with n-api #20
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 Tests | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| unit: | |
| runs-on: ${{ matrix.runner }} | |
| strategy: | |
| matrix: | |
| include: | |
| - node: "22.x" | |
| arch: "x64" | |
| runner: windows-latest | |
| platform: win32 | |
| - node: "22.x" | |
| arch: "x64" | |
| runner: ubuntu-latest | |
| platform: linux | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| - name: Install Linux build deps | |
| if: ${{ matrix.platform == 'linux' }} | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libcups2-dev build-essential python3 | |
| shell: bash | |
| - name: Install deps | |
| run: npm ci | |
| - name: Run unit tests | |
| run: npm test |