mirror of
https://github.com/taiki-e/install-action.git
synced 2026-04-21 15:10:27 +00:00
Add {typos,wasm-bindgen,wasmtime}-cli aliases
This commit is contained in:
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@@ -151,7 +151,8 @@ jobs:
|
|||||||
- run: env
|
- run: env
|
||||||
- uses: ./
|
- uses: ./
|
||||||
with:
|
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:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Test bash
|
- name: Test bash
|
||||||
|
|||||||
@@ -10,6 +10,12 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
|
|||||||
|
|
||||||
## [Unreleased]
|
## [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-dockerfile@latest` to 0.1.2.
|
||||||
|
|
||||||
- Update `parse-changelog@latest` to 0.6.13.
|
- Update `parse-changelog@latest` to 0.6.13.
|
||||||
|
|||||||
5
main.sh
5
main.sh
@@ -744,10 +744,11 @@ for tool in "${tools[@]}"; do
|
|||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
# Handle aliases.
|
# 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
|
case "${tool}" in
|
||||||
nextest) tool=cargo-nextest ;;
|
nextest) tool=cargo-nextest ;;
|
||||||
taplo-cli) tool=taplo ;;
|
taplo-cli | typos-cli | wasm-bindgen-cli | wasmtime-cli) tool="${tool%-cli}" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Use cargo-binstall fallback if tool is not available.
|
# Use cargo-binstall fallback if tool is not available.
|
||||||
|
|||||||
@@ -134,10 +134,13 @@ for tool in tools/codegen/base/*.json; do
|
|||||||
tools+=("${tool%.*}")
|
tools+=("${tool%.*}")
|
||||||
done
|
done
|
||||||
# Aliases.
|
# 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+=(
|
tools+=(
|
||||||
nextest
|
nextest
|
||||||
taplo-cli
|
taplo-cli
|
||||||
|
typos-cli
|
||||||
|
wasm-bindgen-cli
|
||||||
|
wasmtime-cli
|
||||||
)
|
)
|
||||||
# Non-manifest-based tools.
|
# Non-manifest-based tools.
|
||||||
tools+=(valgrind)
|
tools+=(valgrind)
|
||||||
|
|||||||
Reference in New Issue
Block a user