Skip to content

Merge pull request #43 from sysdevrun/claude/node-esm-bundler-resolut… #181

Merge pull request #43 from sysdevrun/claude/node-esm-bundler-resolut…

Merge pull request #43 from sysdevrun/claude/node-esm-bundler-resolut… #181

Workflow file for this run

name: CI
on:
push:
branches: ['**']
pull_request:
branches: ['**']
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20, 22]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
- run: npm ci
- run: npm test
- run: npm run build
- name: ESM smoke test (import packed artifact with plain Node)
run: |
npm pack --pack-destination /tmp
mkdir -p /tmp/smoke && cd /tmp/smoke && npm init -y
npm install /tmp/dosipas-ts-*.tgz
node -e "import('dosipas-ts').then(m => {
if (typeof m.decodeTicket !== 'function') process.exit(1);
console.log('ESM smoke test ok');
})"