diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a3828a6a..b120fe42 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -151,7 +151,8 @@ jobs: - run: env - uses: ./ with: - tool: nextest,taplo-cli + # NB: Update alias list in tools/publish.rs and case for aliases in main.sh. + tool: nextest,taplo-cli,typos-cli,wasm-bindgen-cli,wasmtime-cli env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Test bash diff --git a/CHANGELOG.md b/CHANGELOG.md index fc5d727e..9957a832 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,12 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com ## [Unreleased] +- Accept `typos-cli` as an alias for `typos`. + +- Accept `wasm-bindgen-cli` as an alias for `wasm-bindgen`. + +- Accept `wasmtime-cli` as an alias for `wasmtime`. + - Update `parse-dockerfile@latest` to 0.1.2. - Update `parse-changelog@latest` to 0.6.13. diff --git a/main.sh b/main.sh index 9984d53c..9ceeb68d 100755 --- a/main.sh +++ b/main.sh @@ -744,10 +744,11 @@ for tool in "${tools[@]}"; do ;; *) # Handle aliases. - # NB: Update alias list in tools/publish.rs. + # NB: Update alias list in tools/publish.rs and tool input option in test-alias in .github/workflows/ci.yml. + # TODO(codegen): auto-detect cases where crate name and tool name are different. case "${tool}" in nextest) tool=cargo-nextest ;; - taplo-cli) tool=taplo ;; + taplo-cli | typos-cli | wasm-bindgen-cli | wasmtime-cli) tool="${tool%-cli}" ;; esac # Use cargo-binstall fallback if tool is not available. diff --git a/tools/publish.sh b/tools/publish.sh index 0959892f..5e3f18cc 100755 --- a/tools/publish.sh +++ b/tools/publish.sh @@ -134,10 +134,13 @@ for tool in tools/codegen/base/*.json; do tools+=("${tool%.*}") done # Aliases. -# NB: Update case for aliases in main.rs. +# NB: Update case for aliases in main.sh and tool input option in test-alias in .github/workflows/ci.yml. tools+=( nextest taplo-cli + typos-cli + wasm-bindgen-cli + wasmtime-cli ) # Non-manifest-based tools. tools+=(valgrind)