Hammer1279 a67fa0eead
All checks were successful
Node.js CI / build (x64, linux) (push) Successful in 35s
Node.js CI / build (x64, win) (push) Successful in 34s
Update README for installation instructions and enhance index.js with command-line arguments support
Signed-off-by: Hammer1279 <hammer@ht-dev.de>
2025-01-19 16:54:28 +01:00

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