-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from ar-io/develop
chore(PE-7017): release new ANT source code
- Loading branch information
Showing
41 changed files
with
2,089 additions
and
836 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
print("Loading .busted configuration...") | ||
|
||
return { | ||
_all = { | ||
default = { | ||
root = "src", | ||
pattern = "**/*_spec.lua$", | ||
helper = "spec/setup.lua", | ||
verbose = true, | ||
coverage = true, | ||
output = "utfTerminal", | ||
jobs = 4, | ||
}, | ||
default = { | ||
ROOT = {"ant"}, | ||
pattern = "**/*_spec.lua$", | ||
helper = "spec/setup.lua", | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ on: [push, workflow_dispatch] | |
|
||
jobs: | ||
unit: | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
name: Check out repository code | ||
|
@@ -29,6 +29,22 @@ jobs: | |
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
lint: | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: leafo/gh-actions-lua@v10 | ||
with: | ||
luaVersion: '5.3' | ||
|
||
- name: Setup LuaRocks | ||
uses: leafo/[email protected] | ||
|
||
- name: Install Luacheck | ||
run: luarocks install luacheck | ||
|
||
- run: luacheck src spec | ||
|
||
# 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) | ||
|
||
integration: | ||
|
@@ -47,7 +63,7 @@ jobs: | |
publish: | ||
runs-on: ubuntu-latest | ||
environment: main | ||
needs: [unit, integration] | ||
needs: [lint, unit, integration] | ||
permissions: | ||
contents: write # to be able to publish a GitHub release | ||
outputs: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env sh | ||
|
||
yarn lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
allow_defined = true | ||
exclude_files = { | ||
"dist/", | ||
} | ||
globals = { | ||
"Handlers", | ||
"ao", | ||
"Owner", | ||
"Balances", | ||
"Records", | ||
"Controllers", | ||
"Name", | ||
"Ticker", | ||
"TotalSupply", | ||
"Logo", | ||
"Description", | ||
"Keywords", | ||
"Denomination", | ||
"Initialized" | ||
} | ||
max_line_length = 185 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
statsfile = 'coverage/luacov.stats.out'; | ||
reportfile = 'coverage/luacov.report.out'; | ||
deleteStatsFile = false; | ||
include = { "src/" } | ||
exclude = { "crypto", "json", "base64", "ao" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"recommendations": [ | ||
"JohnnyMorganz.stylua", | ||
"sumneko.lua", | ||
"esbenp.prettier-vscode" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,40 @@ | ||
{ | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.formatOnSave": true, | ||
"editor.formatOnPaste": true, | ||
"editor.formatOnSaveMode": "file", | ||
"[mjs, js]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.formatOnSave": true, | ||
"editor.formatOnPaste": true, | ||
"editor.formatOnSaveMode": "file" | ||
}, | ||
"prettier.configPath": ".prettierrc", | ||
"prettier.prettierPath": "./node_modules/prettier/index.cjs", | ||
"[typescript]": { | ||
"editor.formatOnSave": true | ||
}, | ||
"[markdown]": { | ||
"editor.formatOnSave": true | ||
"editor.formatOnSave": true, | ||
"editor.formatOnSaveMode": "file" | ||
}, | ||
"search.exclude": { | ||
"**/node_modules": true, | ||
"**/lib": true, | ||
"**/dist": true, | ||
"**/coverage": true | ||
}, | ||
"Lua.codeLens.enable": true, | ||
"Lua.workspace.library": ["${workspaceFolderBasename}/**"], | ||
"Lua.completion.callSnippet": "Both", | ||
"Lua.signatureHelp.enable": true, | ||
"Lua.workspace.checkThirdParty": true, | ||
"Lua.diagnostics.enable": true, | ||
"Lua.diagnostics.disable": ["lowercase-global", "undefined-global"], | ||
"Lua.format.defaultConfig": { | ||
"indent_style": "space", | ||
"indent_size": "2" | ||
}, | ||
"[lua]": { | ||
"editor.defaultFormatter": "JohnnyMorganz.stylua", | ||
"editor.formatOnSave": true | ||
"editor.formatOnSave": true, | ||
"editor.formatOnPaste": true, | ||
"editor.formatOnSaveMode": "file" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.