-
Notifications
You must be signed in to change notification settings - Fork 369
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add wasm-bindgen version check to CI (#7983)
- Loading branch information
Showing
3 changed files
with
56 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,3 +40,42 @@ jobs: | |
mode: minimum | ||
count: 1 | ||
labels: "📊 analytics, 🟦 blueprint, 🪳 bug, 🌊 C++ API, CLI, codegen/idl, 🧑💻 dev experience, dependencies, 📖 documentation, 💬 discussion, examples, exclude from changelog, 🪵 Log & send APIs, 📉 performance, 🐍 Python API, ⛃ re_datastore, 🔍 re_query, 📺 re_viewer, 🔺 re_renderer, 🚜 refactor, ⛴ release, 🦀 Rust API, 🔨 testing, ui, 🕸️ web" | ||
|
||
wasm-bindgen-check: | ||
name: Check wasm-bindgen version | ||
if: ${{ github.event_name == 'pull_request' }} | ||
runs-on: ubuntu-latest | ||
continue-on-error: true | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: prefix-dev/[email protected] | ||
with: | ||
pixi-version: v0.34.0 | ||
|
||
- name: Get current wasm-bindgen version | ||
id: current-version | ||
run: | | ||
version=$(pixi run taplo get -f crates/viewer/re_viewer/Cargo.toml "target.*.dependencies.wasm-bindgen") | ||
echo "current_version=$version" >> $GITHUB_OUTPUT | ||
- name: Get previous wasm-bindgen version | ||
id: previous-version | ||
run: | | ||
prev_ref=$(git rev-parse --abbrev-ref HEAD) | ||
git checkout main | ||
version=$(pixi run taplo get -f crates/viewer/re_viewer/Cargo.toml "target.*.dependencies.wasm-bindgen") | ||
echo "previous_version=$version" >> $GITHUB_OUTPUT | ||
git checkout $prev_ref | ||
- name: Require label if versions changed | ||
if: ${{ steps.current-version.outputs.current_version != steps.previous-version.outputs.previous_version }} | ||
uses: mheap/github-action-required-labels@v3 | ||
with: | ||
mode: exactly | ||
count: 1 | ||
labels: "wasm-bindgen version update" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.