Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
8f99164
Adopt the grove-ts infrastructure
PSchmiedmayer Nov 26, 2026
0988685
Keep standalone deployment on reviewed signed releases
PSchmiedmayer Dec 3, 2026
053fbf9
Update cross-spawn to the patched release
PSchmiedmayer Dec 3, 2026
0b09a07
Require lab repository checks in Anvil CI
PSchmiedmayer Dec 3, 2026
c1061da
Validate release identity and coverage on the standalone cut
PSchmiedmayer Dec 3, 2026
a9f8c63
Enforce measured coverage across the supported Node runtimes
PSchmiedmayer Dec 3, 2026
a796730
Reject ambiguous release versions and verify staged package identity
PSchmiedmayer Dec 3, 2026
f299023
Use the canonical Anvil repository name
PSchmiedmayer Dec 4, 2026
848dc3a
Generate editor identifiers without modulo bias
PSchmiedmayer Dec 4, 2026
b440afc
Report coverage paths relative to the repository root
PSchmiedmayer Dec 4, 2026
b85452a
Cover the editor, previews, and core helpers with tests
PSchmiedmayer Dec 4, 2026
aa3b159
Resolve the coverage project root without Node types
PSchmiedmayer Dec 4, 2026
c45f1f9
Keep coverage tests independent of known wording issues and test globals
PSchmiedmayer Dec 4, 2026
90fae5c
Name missing types and articles correctly in validation messages
PSchmiedmayer Dec 4, 2026
29e31b3
Use the canonical Anvil repository name in package metadata
PSchmiedmayer Dec 4, 2026
7eb029d
Pin the article of item types in control labels
PSchmiedmayer Dec 4, 2026
9fb80c1
Test editor identifiers for uniqueness and suffix width
PSchmiedmayer Dec 4, 2026
5d16c6f
Share the article helper within Core
PSchmiedmayer Dec 4, 2026
cdc344d
Update dependencies and patch cross-spawn and minimatch
PSchmiedmayer Dec 5, 2026
73118e0
Merge the combined dependency update into the npm workspaces change
PSchmiedmayer Dec 5, 2026
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
7 changes: 2 additions & 5 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# This source file is part of the Anvil project
# This source file is part of the Anvil open-source project
#
# SPDX-FileCopyrightText: 2026 Stanford University and the project authors
# SPDX-FileCopyrightText: 2026 Stanford University and the project authors (see CONTRIBUTORS.md)
#
# SPDX-License-Identifier: MIT
#
Expand All @@ -15,7 +15,4 @@ coverage:
patch:
default:
target: 90%
# Reported, but not failing: the first PR adds every line, so it cannot reach 90%.
# Make it blocking once main has a coverage baseline.
informational: true
comment: false
17 changes: 11 additions & 6 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# This source file is part of the Anvil project
# This source file is part of the Anvil open-source project
#
# SPDX-FileCopyrightText: 2026 Stanford University and the project authors
# SPDX-FileCopyrightText: 2026 Stanford University and the project authors (see CONTRIBUTORS.md)
#
# SPDX-License-Identifier: MIT
#
Expand All @@ -14,13 +14,18 @@ multi-ecosystem-groups:
updates:
- package-ecosystem: github-actions
directory: /
patterns: ['*']
patterns: ["*"]
multi-ecosystem-group: weekly-dependencies
- package-ecosystem: npm
directory: /
patterns: ['*']
patterns: ["*"]
multi-ecosystem-group: weekly-dependencies
cooldown:
default-days: 7
ignore:
# typescript-eslint currently supports TypeScript below 6.1.
# typescript-eslint supports TypeScript below 6.1.
- dependency-name: typescript
update-types: ['version-update:semver-major', 'version-update:semver-minor']
versions: [">=6.1.0"]
# Anvil's supported runtime is Node.js 24.
- dependency-name: "@types/node"
update-types: ["version-update:semver-major"]
31 changes: 31 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#
# This source file is part of the Anvil open-source project
#
# SPDX-FileCopyrightText: 2026 Stanford University and the project authors (see CONTRIBUTORS.md)
#
# SPDX-License-Identifier: MIT
#

changelog:
exclude:
labels:
- duplicate
- invalid
- question
- wontfix
categories:
- title: Enhancements
labels:
- enhancement
- title: Fixes
labels:
- bug
- title: Dependencies
labels:
- dependencies
- title: Documentation
labels:
- documentation
- title: Other Changes
labels:
- "*"
188 changes: 140 additions & 48 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@
#
# This source file is part of the Anvil project
# This source file is part of the Anvil open-source project
#
# SPDX-FileCopyrightText: 2026 Stanford University and the project authors
# SPDX-FileCopyrightText: 2026 Stanford University and the project authors (see CONTRIBUTORS.md)
#
# SPDX-License-Identifier: MIT
#

name: Build and Test

on:
push:
branches: [main]
pull_request:
workflow_dispatch:
workflow_call:

permissions:
contents: read
pull-requests: read
Expand All @@ -23,16 +16,22 @@
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
push:
branches:
- main
pull_request:
workflow_dispatch:
workflow_call:
secrets:
CODECOV_TOKEN:
required: false

jobs:
reuse:
name: REUSE Compliance Check
uses: SchmiedmayerLab/.github/.github/workflows/reuse.yml@v0.5
actionlint:
name: GitHub Actions Workflow Check
uses: SchmiedmayerLab/.github/.github/workflows/actionlint.yml@v0.5
markdown-links:
name: Markdown Link Check
uses: SchmiedmayerLab/.github/.github/workflows/markdown-links.yml@v0.5
standards:
name: Standards
if: github.repository == 'SchmiedmayerLab/Anvil'
uses: SchmiedmayerLab/.github/.github/workflows/repository-standards.yml@v0.5
quality:
name: Build and Quality Checks
runs-on: ubuntu-latest
Expand All @@ -42,65 +41,158 @@
uses: actions/checkout@v7
with:
persist-credentials: false
- name: Set up pnpm
uses: pnpm/action-setup@v6
- name: Set up Node.js and install dependencies
uses: SchmiedmayerLab/.github/actions/setup-node-project@v0.5
- name: Check formatting
run: npm run format:check
- name: Build packages and the app with strict TypeScript checks
run: npm run build
- name: Lint packages
run: npm --ignore-scripts run lint:ci
- name: Analyze dead code, dependencies, exports, and cycles
run: npm run analyze
- name: Type-check source and tests
run: npm --ignore-scripts run typecheck
- name: Verify package contents
run: npm run pack:check
- name: Lint package manifests and TypeScript declarations
run: npm run pack:lint
- name: Audit all dependencies
run: npm run audit
- name: Verify npm registry signatures
run: npm run audit:signatures
node-current:
name: Node.js 26 Compatibility
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout repository
uses: actions/checkout@v7
with:
persist-credentials: false
- name: Set up Node.js
uses: actions/setup-node@v7
with:
node-version-file: .nvmrc
cache: pnpm
node-version: 26
cache: npm
- name: Use the repository npm version
run: |
NPM_VERSION="$(node --input-type=module -e '
import { readFileSync } from "node:fs";
const { packageManager } = JSON.parse(readFileSync("package.json", "utf8"));
const match = /^npm@((?:0|[1-9][0-9]*)\.(?:0|[1-9][0-9]*)\.(?:0|[1-9][0-9]*))$/.exec(packageManager ?? "");
if (!match) throw new Error("package.json must declare an exact npm packageManager version.");
console.log(match[1]);
')"
npm install --global --ignore-scripts "npm@$NPM_VERSION"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Type-check
run: pnpm typecheck
- name: Lint
run: pnpm lint
- name: Build the app
run: pnpm build
- name: Audit runtime dependencies
run: pnpm audit --prod --audit-level moderate
tests:
name: Test and Coverage
run: npm ci
- name: Build packages and the app
run: npm run build
- name: Type-check source and tests
run: npm --ignore-scripts run typecheck
- name: Run tests
run: npm --ignore-scripts test
pages:
name: Build Pages
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout repository
uses: actions/checkout@v7
with:
persist-credentials: false
- name: Set up pnpm
uses: pnpm/action-setup@v6
- name: Set up Node.js
uses: actions/setup-node@v7
with:
node-version-file: .nvmrc
cache: pnpm
cache: npm
- name: Use the repository npm version
run: |
NPM_VERSION="$(node --input-type=module -e '
import { readFileSync } from "node:fs";
const { packageManager } = JSON.parse(readFileSync("package.json", "utf8"));
const match = /^npm@((?:0|[1-9][0-9]*)\.(?:0|[1-9][0-9]*)\.(?:0|[1-9][0-9]*))$/.exec(packageManager ?? "");
if (!match) throw new Error("package.json must declare an exact npm packageManager version.");
console.log(match[1]);
')"
npm install --global --ignore-scripts "npm@$NPM_VERSION"
- name: Install dependencies
run: pnpm install --frozen-lockfile
run: npm ci
- name: Build Pages artifact
run: npm run pages:build
tests:
name: Test and Coverage
runs-on: ubuntu-latest
timeout-minutes: 30
env:
COVERAGE_FILES: packages/anvil-core/coverage/lcov.info,packages/anvil/coverage/lcov.info
steps:
- name: Checkout repository
uses: actions/checkout@v7
with:
persist-credentials: false
- name: Set up Node.js and install dependencies
uses: SchmiedmayerLab/.github/actions/setup-node-project@v0.5
- name: Run tests with coverage
run: pnpm test:coverage
run: npm test
- name: Verify coverage reports
run: |
IFS=, read -r -a reports <<< "$COVERAGE_FILES"
for report in "${reports[@]}"; do
if [[ ! -s "$report" ]]; then
echo "::error file=$report::Missing or empty coverage report"
exit 1
fi
done
- name: Upload coverage to Codecov
if: github.repository == 'SchmiedmayerLab/Anvil'
# Local coverage checks run even when the reporting service is unavailable.
continue-on-error: true
uses: codecov/codecov-action@v7
with:
files: packages/anvil-core/coverage/lcov.info,packages/anvil/coverage/lcov.info
files: ${{ env.COVERAGE_FILES }}
disable_search: true
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
# Reports only once the repository has a Codecov token; never fails the build.
fail_ci_if_error: false
dependency-review:
name: Dependency Review
if: github.event_name == 'pull_request' && github.repository == 'SchmiedmayerLab/Anvil'
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: read
steps:
- name: Review dependency changes
uses: actions/dependency-review-action@v5
with:
fail-on-severity: moderate
fail-on-scopes: runtime, development
ci:
name: CI
if: always()
needs:
- actionlint
- markdown-links
- dependency-review
- node-current
- pages
- quality
- reuse
- standards
- tests
runs-on: ubuntu-latest
steps:
- name: Check required jobs
env:
RESULTS: ${{ join(needs.*.result, ',') }}
JOBS: ${{ toJSON(needs) }}
UPSTREAM: ${{ github.repository == 'SchmiedmayerLab/Anvil' }}
run: |
if [[ "$RESULTS" == *failure* || "$RESULTS" == *cancelled* ]]; then
exit 1
fi
jq -e --arg event "$GITHUB_EVENT_NAME" --argjson upstream "$UPSTREAM" '
all(to_entries[];
.value.result == (
if (.key == "standards" and ($upstream | not)) or
(.key == "dependency-review" and (($upstream | not) or $event != "pull_request"))
then "skipped"
else "success"
end
)
)
' <<< "$JOBS"
Loading
Loading