Skip to content

Consistent way to test crates on CI (without hardcoding a wasm-bindgen version in CI configs) #1611

Closed
@najamelan

Description

@najamelan

Motivation

I'm trying to add CI testing to my crate following the explanation here:
https://rustwasm.github.io/wasm-bindgen/wasm-bindgen-test/continuous-integration.html

As you can see there is a lot of hardcoded version numbers for wasm-bindgen, nvm, geckodriver, chromedriver. This means that whenever wasm-bindgen is updated we would have to manually modify configuration files like .travis.yml.

This also means that the book itself is outdated all the time.

Proposed Solution

I'm wondering if we can make a simpler way to set this up which would just use the latest version of everything. I'm suspecting that wasm-bindgen can be installed with cargo install.

In either case, the book needs an update (wasm-bindgen-0.2.21), and maybe it's a good moment to consider streamlining this workflow?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions