Skip to content

Commit

Permalink
Update jest to v29 and rollup to v3 (#67)
Browse files Browse the repository at this point in the history
* Update packages and fix get run stack values

* Update actions and jest

* Add max workers to jest

* Add --experimental-vm-modules

* --experimental-vm-modules on test ci

* ES modules jest

* Convert prettier to json

* Fix module hell

* Add max workers again

* Add runinband

* one worker

* run without cache

* Upload core dump

* Fix file format

* run with sudo

* ls

* test

* maxWorkers again

* --experimental-vm-modules again

* Change jest flags

* a

* Fixed emsdk version to 3.1.26

* Remove unused jest flags
  • Loading branch information
ceifa authored Dec 18, 2022
1 parent e718b6f commit 42ac15b
Show file tree
Hide file tree
Showing 18 changed files with 2,116 additions and 1,727 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"ignorePatterns": [
"dist/*",
"build/*",
"rollup.config.js",
"rollup.config.mjs",
"utils/*"
],
"rules": {
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: mymindstorm/setup-emsdk@v11
with:
version: 3.1.26
- name: Use Node.js 18.x
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: 18.x
- run: npm ci
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,17 @@ jobs:

strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
node-version: [16, 18]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: mymindstorm/setup-emsdk@v11
with:
version: 3.1.26
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
Expand Down
9 changes: 9 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"singleQuote": true,
"trailingComma": "all",
"endOfLine": "lf",
"quoteProps": "consistent",
"semi": false,
"printWidth": 140,
"tabWidth": 4
}
9 changes: 0 additions & 9 deletions .prettierrc.js

This file was deleted.

13 changes: 9 additions & 4 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,17 @@
"configurations": [
{
"outputCapture": "std",
"type": "pwa-node",
"type": "node",
"request": "launch",
"name": "Launch Program",
"skipFiles": ["<node_internals>/**"],
"program": "${workspaceFolder}/test/debug.js",
"runtimeArgs": ["--inspect", "--expose-gc"]
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}/test/debug.mjs",
"runtimeArgs": [
"--inspect",
"--expose-gc"
]
}
]
}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ You need to install [emscripten](https://emscripten.org/) and ensure it is on yo
After cloned the repo, to build you just have to run these:

```sh
emsdk install 3.1.26 && emsdk activate 3.1.26 # activates emsdk version needed to run
npm run build:wasm:dev # build lua
npm run build # build the js code/bridge
npm test # ensure everything it's working fine
Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ emcc \
'setValue'
]" \
-s MODULARIZE=1 \
-s ALLOW_TABLE_GROWTH \
-s ALLOW_TABLE_GROWTH=1 \
-s EXPORT_NAME="initWasmModule" \
-s ALLOW_MEMORY_GROWTH=1 \
-s STRICT=1 \
Expand Down
2 changes: 1 addition & 1 deletion lua
Submodule lua updated 40 files
+119 −116 lapi.c
+10 −7 lapi.h
+31 −25 lauxlib.c
+2 −2 lcorolib.c
+26 −26 ldebug.c
+1 −1 ldebug.h
+99 −76 ldo.c
+4 −3 ldo.h
+24 −25 lfunc.c
+2 −2 lfunc.h
+51 −46 lgc.c
+2 −0 lgc.h
+2 −2 llex.c
+4 −4 lobject.c
+15 −2 lobject.h
+1 −3 loslib.c
+11 −11 lparser.c
+27 −30 lstate.c
+7 −7 lstate.h
+2 −4 ltable.c
+0 −1 ltable.h
+1 −1 ltablib.c
+18 −18 ltests.c
+19 −19 ltm.c
+1 −1 lua.h
+3 −2 luaconf.h
+3 −3 lundump.c
+16 −11 lutf8lib.c
+51 −53 lvm.c
+5 −0 lvm.h
+7 −2 makefile
+146 −85 manual/manual.of
+12 −0 testes/bitwise.lua
+26 −0 testes/cstack.lua
+9 −0 testes/files.lua
+20 −0 testes/locals.lua
+30 −5 testes/main.lua
+29 −9 testes/nextvar.lua
+7 −2 testes/strings.lua
+11 −1 testes/utf8.lua
Loading

0 comments on commit 42ac15b

Please sign in to comment.