mirror of
https://github.com/fluencelabs/aquavm
synced 2025-03-28 10:21:04 +00:00
* Fix `ReferenceError: TextEncoder is not defined` * Add CI pipeline which runs avm client tests
44 lines
961 B
YAML
44 lines
961 B
YAML
name: Run tests for avm client (js)
|
|
|
|
defaults:
|
|
run:
|
|
working-directory: ./avm/client
|
|
|
|
on:
|
|
push:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
node-version: [14.x, 15.x]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/cache@v2
|
|
with:
|
|
path: ~/.npm
|
|
key: ${{ runner.os }}-v1-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-v1-node-${{ matrix.node-version }}
|
|
|
|
- name: Setup Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
- name: Install wasm-pack
|
|
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
|
|
continue-on-error: true
|
|
|
|
- run: ./build_wasm.sh
|
|
- run: npm install
|
|
|
|
- name: test
|
|
run: npm run test
|
|
env:
|
|
CI: true
|