forked from gluesql/gluesql
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (54 loc) · 1.42 KB
/
javascript.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: JavaScript
on:
push:
branches: [main, release-*]
paths-ignore:
- 'docs/**'
pull_request:
branches: [main, release-*]
paths-ignore:
- 'docs/**'
env:
CARGO_TERM_COLOR: always
jobs:
js_build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up node
uses: actions/setup-node@v3
with:
node-version: 16
- uses: browser-actions/setup-firefox@latest
- name: Set up wasm pack
uses: jetli/[email protected]
with:
version: 'v0.12.1'
- run: |
cd pkg/javascript
npm install
wasm-pack build --target web
wasm-pack build --target nodejs -- --no-default-features --features nodejs
wasm-pack test --headless --firefox
cd ../../
js_storage_tests:
name: Storage tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up node
uses: actions/setup-node@v3
with:
node-version: 16
- uses: browser-actions/setup-firefox@latest
- name: Set up wasm pack
uses: jetli/[email protected]
with:
version: 'v0.12.1'
- run: |
cd storages/web-storage
wasm-pack test --headless --firefox
cd ../idb-storage
WASM_BINDGEN_TEST_TIMEOUT=60 wasm-pack test --headless --firefox
cd ../../