Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

CI Scripts

validate-proposals.js

Validates WIT definitions for changed proposals. Used by the CI workflow.

Prerequisites

Running Locally

# Validate specific proposals by simulating changed files
WIT_FILES='["proposals/cli/wit/command.wit"]' node .github/scripts/validate-proposals.js

# Validate multiple proposals
WIT_FILES='["proposals/cli/wit/command.wit", "proposals/http/wit/worlds.wit"]' node .github/scripts/validate-proposals.js

Environment Variables

Variable Description
WIT_FILES JSON array of changed files in proposals/*/wit/**

What it validates

  1. wit-deps lock - If deps.toml exists, checks that deps.lock is up to date
  2. WIT syntax - Parses WIT files with Wasm-tools component wit
  3. Wasm encoding - Validates Wasm binary encoding with --Wasm flag