Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .bun-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.4.5
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Signed test releases: their bytes are hashed and signed, so no line-ending
# conversion on checkout (Windows runners check out with autocrlf).
test/fixtures/release-signature/** -text
64 changes: 64 additions & 0 deletions .github/workflows/cli-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,18 @@ jobs:
working-directory: ./cli
run: pnpm test:unit

# Release signatures as the standalone binaries check them: on the Bun in
# .bun-version, the runtime compiled into them. A Bun that can't read the
# ML-DSA keys would ship binaries that can never upgrade.
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version-file: cli/.bun-version

- name: Check release signatures on the shipped Bun
working-directory: ./cli
run: bun scripts/verify-release.ts --vectors

- name: Note skipped integration tests
run: echo "::notice::Integration tests are not run in CI — they need a mock of the dcd API, and this public repo does not reach into the private one. Lint, typecheck, unit tests, build and audit all ran."

Expand All @@ -102,6 +114,58 @@ jobs:
working-directory: ./cli
run: pnpm audit --audit-level moderate

# The ML-DSA half of the release-signature tests, which skip on Node 22 (it
# has no ML-DSA). Node 24 is also what signs releases.
release-signing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7

# The pnpm version comes from package.json's packageManager field.
- name: Setup pnpm
uses: pnpm/action-setup@v6.1.0
with:
run_install: false

- uses: actions/setup-node@v7
with:
node-version: '24.x'
cache: 'pnpm'
cache-dependency-path: './pnpm-lock.yaml'

- run: pnpm install --frozen-lockfile

- name: Release signature, upgrade and install.sh tests
run: >-
pnpm exec mocha --no-config --node-option import=tsx/esm --extension ts --timeout 60000
test/unit/release-signature.test.ts test/unit/upgrade.test.ts test/unit/install-sh.test.ts

# install.ps1 under Windows PowerShell 5.1 and PowerShell 7, against the
# signed test releases. Only CI runs these: the installer writes the user PATH.
install-ps1:
runs-on: windows-latest
steps:
- uses: actions/checkout@v7

# The pnpm version comes from package.json's packageManager field.
- name: Setup pnpm
uses: pnpm/action-setup@v6.1.0
with:
run_install: false

- uses: actions/setup-node@v7
with:
node-version: '22'
cache: 'pnpm'
cache-dependency-path: './pnpm-lock.yaml'

- run: pnpm install --frozen-lockfile

- name: install.ps1 tests
run: >-
pnpm exec mocha --no-config --node-option import=tsx/esm --extension ts --timeout 120000
--fail-zero test/unit/install-ps1.test.ts

# Every PR into `production` is a release, built by promote.yml: `dev` with
# `production` merged in, plus a commit that sets a new version in
# package.json and server.json and adds its CHANGELOG.md section. This checks
Expand Down
Loading
Loading