-
Notifications
You must be signed in to change notification settings - Fork 1
28 lines (28 loc) · 965 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
on:
push:
branches:
- '*'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-modules-${{ hashFiles('yarn.lock') }}
- run: yarn && yarn asbuild
- run: |
wget https://github.com/Shopify/function-runner/releases/download/v3.1.0/function-runner-x86_64-linux-v3.1.0.gz
gunzip function-runner-x86_64-linux-v3.1.0.gz
chmod 700 function-runner-x86_64-linux-v3.1.0
mv function-runner-x86_64-linux-v3.1.0 function-runner
yarn test
./function-runner -f ./build/release.wasm ./input.json
test $(./function-runner -f ./build/release.wasm ./input.json -j | jq '.size') -lt 256000