aquavm/.github/workflows/avm_client_ci.yml
Pavel 792763c72b
Checking for undefined textencoder (#100)
* Fix `ReferenceError: TextEncoder is not defined`

* Add CI pipeline which runs avm client tests
2021-05-11 10:36:59 +03:00

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