Validate the wire format against node-smpp and add CI

This commit is contained in:
2026-08-25 16:52:33 +02:00
parent fd2f98464f
commit 2e4699944b
10 changed files with 486 additions and 5 deletions
+26
View File
@@ -0,0 +1,26 @@
name: Release
on:
push:
tags: ['v*']
permissions:
contents: read
id-token: write
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
cache: npm
node-version: 24
registry-url: https://registry.npmjs.org
- run: npm ci
- run: npm run lint
- run: npm test
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
+36
View File
@@ -0,0 +1,36 @@
name: Test
on:
push:
branches: ['**']
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
cache: npm
node-version: 24
- run: npm ci
- run: npm run lint
- run: npm run build
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# The floor in package.json engines, every LTS above it, and current.
node: ['18', '20', '22', '24']
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
cache: npm
node-version: ${{ matrix.node }}
- run: npm ci
# Compiled rather than type-stripped: Node 18 and 20 cannot run TypeScript directly.
- run: npm run test:compiled