Skip to content

fix: ci trigger on push, esbuild CJS bundle for pkg binary compilation #13

fix: ci trigger on push, esbuild CJS bundle for pkg binary compilation

fix: ci trigger on push, esbuild CJS bundle for pkg binary compilation #13

Workflow file for this run

name: CI
# Runs on EVERY push to main/develop AND every pull request.
# Both CI (this) and Release workflows fire on push — CI is the fast gate.
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
test:
name: Test (Node ${{ matrix.node }})
runs-on: ubuntu-latest
defaults: { run: { working-directory: ./cloudsync-cli } }
strategy:
matrix:
node: ['18', '20', '22']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: npm
cache-dependency-path: cloudsync-cli/package-lock.json
- run: npm ci
- run: npm test