Add GH actions (#37)

* Add GH actions

* Install nightly, test Rust seperately

* Nightly for tests

* Pin nightly version... maybe this works?

* Revert attempted version fix

* Re-try nightly pinning...

* Try without...

* Revert stable experiment

* Run action on PR

* Action only on PR

* Rename push.yml to pr.yml

* Bump deps, update actions

* Bump backtrace (maybe this helps?)

* Don't test rust alongside wasm (split)
This commit is contained in:
Jaco Greeff
2019-10-08 14:00:59 +02:00
committed by GitHub
parent 2c02b44c0d
commit 0e50f267d1
8 changed files with 584 additions and 349 deletions
+22
View File
@@ -0,0 +1,22 @@
#!/usr/bin/env bash
set -e
echo "*** Testing packages"
cd packages
PACKAGES=( $(ls -1d *) )
for PKG in "${PACKAGES[@]}"; do
if [ -f "$PKG/package.json" ]; then
echo "*** Testing $PKG"
cd $PKG
echo "*** Testing Rust"
RUST_BACKTRACE=full rustup run nightly cargo test --release -- --nocapture
cd ..
fi
done
cd ..