Hammer1279 8b31201ad5
Some checks failed
Node.js CI / build (arm64, linux) (push) Failing after 47s
Node.js CI / build (arm64, win) (push) Failing after 32s
Node.js CI / build (x64, linux) (push) Successful in 32s
Node.js CI / build (x64, win) (push) Successful in 30s
Refactor code to use CommonJS syntax, update README and package.json for clarity and add binary packaging. Also added initial custom client init stuff.
Signed-off-by: Hammer1279 <hammer@ht-dev.de>
2025-01-19 00:41:58 +01:00

41 lines
1014 B
YAML

# 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
- name: Install dependencies
run: npm install
- name: Package into node binary
uses: lando/pkg-action@v2
with:
entrypoint: index.js
arch: ${{ matrix.arch }}
os: ${{ matrix.os }}
env:
PKG_ARCH: ${{ matrix.arch }}
PKG_OS: ${{ matrix.os }}