Skip to content

chore(master): release 0.16.0 #271

chore(master): release 0.16.0

chore(master): release 0.16.0 #271

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 24
cache: npm
- run: npm ci
- run: npm run lint
- run: npm run format:check
- run: npm run test:types
test:
name: test (node ${{ matrix.node }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
node: [22, 24, 26]
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: ${{ matrix.node }}
cache: npm
# Both integration jobs need a dbus-daemon binary on PATH; the tests
# start their own private bus rather than using the system one.
- name: Install dbus (Linux)
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install -y dbus
- name: Install dbus (macOS)
if: runner.os == 'macOS'
run: brew install dbus
- run: npm ci
- run: npm run test:raw
- run: npm run test:integration
bun:
name: bun (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 24
cache: npm
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
# `scripts/with-dbus.js` starts the private bus the integration half
# talks to, and both clients in it are Bun processes.
- name: Install dbus (Linux)
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install -y dbus
- name: Install dbus (macOS)
if: runner.os == 'macOS'
run: brew install dbus
- run: npm ci
# The fd transport is the only thing in this package that cannot run on
# Node -- sendmsg/recvmsg through bun:ffi, a worker thread in poll(2),
# and the msghdr/cmsghdr layouts, which differ between these two
# platforms in ways only both of them can catch.
- run: npm run test:bun
- run: npm run test:bun:integration
shapes:
name: value shapes
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 24
cache: npm
- run: sudo apt-get update && sudo apt-get install -y dbus
- run: npm ci
# The whole integration suite under each value shape, against both buses.
# The matrix job above covers 'plain' on dbus-daemon; these are the other
# five. One OS and one Node version is enough: a value shape is library
# logic, not platform behaviour, and the suite takes about three seconds.
#
# 'classic' is here because `dbus-native/compat` is only a supported
# escape hatch for as long as something runs it. 'wrap' is here because it
# is the only shape that can tell a preserved variant signature from a
# re-inferred one -- which is how the broker's routing bug was found.
- run: npm run test:integration:wrap
- run: npm run test:integration:classic
- run: npm run test:integration:broker
- run: npm run test:integration:wrap:broker
- run: npm run test:integration:classic:broker