File tree 4 files changed +380
-3
lines changed
4 files changed +380
-3
lines changed Original file line number Diff line number Diff line change 29
29
with :
30
30
token : ${{ secrets.CODECOV_TOKEN }}
31
31
32
+ lint :
33
+ runs-on : ubuntu-24.04
34
+ steps :
35
+ - uses : actions/checkout@v4
36
+ - uses : leafo/gh-actions-lua@v10
37
+ with :
38
+ luaVersion : ' 5.3'
39
+ - run : luacheck .
40
+
32
41
# TODO: add ar-io-sdk e2e tests against lua code to be bundled on changes (e.g. create a new ant, publish it and validate it works with the sdk)
33
42
34
43
integration :
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env sh
2
+
3
+ yarn lint-staged
Original file line number Diff line number Diff line change 5
5
"module:publish" : " cd src && ao publish process.wasm -w ../tools/key.mjson --tag=\" Memory-Limit\" --value=\" 1-gb\" --tag=\" Compute-Limit\" --value=\" 9000000000000\" && cd .." ,
6
6
"module:load" : " node tools/load-module.mjs" ,
7
7
"module:spawn" : " node tools/spawn-module.mjs" ,
8
+ "lint" : " luacheck ." ,
8
9
"aos:build" : " node tools/bundle-aos.mjs" ,
9
10
"aos:publish" : " node tools/bundle-aos.mjs && node tools/publish-aos.mjs" ,
10
11
"aos:load" : " node tools/bundle-aos.mjs && node tools/load-aos.mjs" ,
11
12
"aos:spawn" : " node tools/spawn-aos.mjs" ,
12
- "test" : " yarn aos:build && node --test --test-concurrency 1 --experimental-wasm-memory64 **/*.test.mjs"
13
+ "test" : " yarn aos:build && node --test --test-concurrency 1 --experimental-wasm-memory64 **/*.test.mjs" ,
14
+ "prepare" : " husky"
13
15
},
14
16
"devDependencies" : {
15
17
"@ardrive/turbo-sdk" : " ^1.19.0" ,
16
18
"@permaweb/ao-loader" : " ^0.0.35" ,
17
19
"@permaweb/aoconnect" : " ^0.0.55" ,
18
20
"arweave" : " ^1.15.1" ,
21
+ "husky" : " ^9.1.6" ,
22
+ "lint-staged" : " ^15.2.10" ,
19
23
"prettier" : " ^3.3.2"
24
+ },
25
+ "lint-staged" : {
26
+ "*.lua" : [
27
+ " stylua" ,
28
+ " luacheck --config .luacheckrc"
29
+ ],
30
+ "*.{js,mjs}" : [
31
+ " prettier --write"
32
+ ]
20
33
}
21
34
}
You can’t perform that action at this time.
0 commit comments