# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs name: Node.js CI on: push: branches: [ "main" ] pull_request: branches: [ "main" ] jobs: build: runs-on: ubuntu-latest strategy: matrix: arch: - x64 # - arm64 os: - linux - win steps: - name: Checkout repository uses: actions/checkout@v2 - name: Setup Node.js uses: actions/setup-node@v3 with: node-version: 20 - name: Install dependencies run: npm install - name: Package into node binary uses: lando/pkg-action@v6 with: entrypoint: index.js arch: ${{ matrix.arch }} # node-version: 20 os: ${{ matrix.os }} env: PKG_ARCH: ${{ matrix.arch }} PKG_OS: ${{ matrix.os }}