test.yml run statement should fail early

Force the `run` script to fail early using bash shell
`set` options.

Previously, errors before the last statement of the script would be
ignored.
This commit is contained in:
jtmoon79 2023-05-28 19:20:14 -07:00 committed by Dirkjan Ochtman
parent c01e3a7238
commit 42fca00f2b

View File

@ -119,9 +119,11 @@ jobs:
with:
node-version: "12"
- run: |
set -euxo pipefail
export RUST_BACKTRACE=1
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
wasm-pack --version
shell: bash
- run: cargo build --target ${{ matrix.target }} --color=always
features_check_wasm: