-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
388 additions
and
170 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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
version: "2.1" | ||
orbs: | ||
browser-tools: circleci/[email protected] | ||
|
||
executors: { | ||
"beta": { | ||
|
@@ -37,6 +39,29 @@ commands: | |
- run: | ||
name: Test | ||
command: cargo test --verbose --all | ||
wasm_pack_install: | ||
description: "Installs `wasm-pack`" | ||
steps: | ||
# We need to install a custom build of wasm-pack as it doesn't pass through parameters to cargo correctly: | ||
# <https://github.com/rustwasm/wasm-pack/pull/851> | ||
# - run: | ||
# name: "Install wasm-pack" | ||
# command: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | ||
- run: | ||
name: "Install wasm-pack" | ||
command: cargo install --git https://github.com/azriel91/wasm-pack.git --branch bugfix/698/build-tests-with-passthrough-args --force | ||
- run: | ||
name: "Print wasm-pack version" | ||
command: "wasm-pack --version" | ||
wasm_pack_test: | ||
description: "Runs WASM Tests" | ||
parameters: | ||
browser: | ||
type: string | ||
steps: | ||
- run: | ||
name: "Test With Browser (<< parameters.browser >>)" | ||
command: wasm-pack test --headless --<< parameters.browser >> -- --no-default-features --features "std wasm-bindgen" | ||
|
||
jobs: | ||
test: | ||
|
@@ -52,6 +77,23 @@ jobs: | |
- checkout | ||
- cargo_test | ||
|
||
wasm_test: | ||
parameters: | ||
version: | ||
type: executor | ||
version_name: | ||
type: string | ||
browser: | ||
type: string | ||
executor: << parameters.version >> | ||
environment: | ||
CI_RUST_VERSION: << parameters.version_name >> | ||
steps: | ||
- browser-tools/install-browser-tools | ||
- checkout | ||
- wasm_pack_install | ||
- wasm_pack_test: { browser: << parameters.browser >> } | ||
|
||
rustfmt: | ||
parameters: | ||
version: | ||
|
@@ -153,6 +195,40 @@ workflows: | |
"/^v\\d+\\.\\d+\\.\\d+.*$/" | ||
] | ||
} | ||
} | ||
- wasm_test: | ||
name: wasm_test-chrome | ||
version: stable | ||
version_name: stable | ||
browser: chrome | ||
filters: { | ||
"branches": { | ||
"ignore": [ | ||
"/.*\\.tmp/" | ||
] | ||
}, | ||
"tags": { | ||
"only": [ | ||
"/^v\\d+\\.\\d+\\.\\d+.*$/" | ||
] | ||
} | ||
} | ||
- wasm_test: | ||
name: wasm_test-firefox | ||
version: stable | ||
version_name: stable | ||
browser: firefox | ||
filters: { | ||
"branches": { | ||
"ignore": [ | ||
"/.*\\.tmp/" | ||
] | ||
}, | ||
"tags": { | ||
"only": [ | ||
"/^v\\d+\\.\\d+\\.\\d+.*$/" | ||
] | ||
} | ||
} | ||
- rustfmt: | ||
version: stable | ||
|
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 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 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 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 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 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 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 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
Oops, something went wrong.