Repository navigation
67 lines (53 loc) · 1.62 KB
/
Copy pathci.yml
File metadata and controls
67 lines (53 loc) · 1.62 KB
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
59
60
61
62
63
64
65
66
67
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
test:
name: Test (Node.js ${{ matrix.node-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [18.x, 20.x, 22.x, 24.x]
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v7
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Install dependencies
run: npm ci
- name: Run ESLint
run: npm run lint
- name: Run tests
run: npm test
verify-64bit:
name: Verify 64-bit integers
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Set up Node.js 24.x
uses: actions/setup-node@v7
with:
node-version: 24.x
cache: npm
- name: Install dependencies
run: npm ci
- name: Install reference Lua 5.3
run: sudo apt-get update && sudo apt-get install -y lua5.3
- name: Verify 64-bit integer support
run: |
echo "=== LuaNode-VM ==="
node cli/luanode.js -e "print(math.maxinteger); print(math.mininteger); print(math.maxinteger + 1)"
echo "=== Reference Lua 5.3 ==="
lua5.3 -e "print(math.maxinteger); print(math.mininteger); print(math.maxinteger + 1)"
- name: Run 64-bit specific test suite
run: npx jest tests/int64.test.js tests/string-format.test.js tests/table-keys.test.js --verbose