Validate the wire format against node-smpp and add CI
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user