-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(workflows): move busted to individual configs on ant and contract
- Loading branch information
Atticus
committed
Jun 7, 2024
1 parent
5b0f05e
commit 773897b
Showing
18 changed files
with
114 additions
and
74 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
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,55 @@ | ||
name: Test / Deploy | ||
|
||
on: [push, workflow_dispatch] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
name: Check out repository code | ||
|
||
- name: Setup Lua | ||
uses: leafo/gh-actions-lua@v10 | ||
with: | ||
luaVersion: '5.3' # Specify the Lua version you need | ||
|
||
- name: Setup LuaRocks | ||
|
||
uses: leafo/gh-actions-luarocks@v4.3.0 | ||
|
||
- name: Install Busted | ||
run: luarocks install ar-io-ao-0.1-1.rockspec | ||
|
||
- name: Run Busted Tests | ||
run: cd contract && busted . | ||
|
||
- name: Upload coverage reports to Codecov | ||
uses: codecov/codecov-action@v4.0.1 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
deploy: | ||
runs-on: ubuntu-latest | ||
needs: test | ||
if: github.ref == 'refs/heads/develop' | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
name: Check out repository code | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4.0.2 | ||
with: | ||
node-version: '20' | ||
|
||
- name: Install aos | ||
run: npm i -g https://get_ao.g8way.io | ||
|
||
- name: Setup wallet | ||
run: echo '${{ secrets.WALLET }}' > wallet.json | ||
|
||
# TODO: should we deploy this way or use ao cli to deploy the module? | ||
# - name: Deploy to AOS | ||
# run: aos --load contract/src/main.lua --wallet wallet.json devnet |
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,14 @@ | ||
print("Loading .busted configuration...") | ||
return { | ||
_all = { | ||
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
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
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
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 was deleted.
Oops, something went wrong.
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,14 @@ | ||
print("Loading .busted configuration...") | ||
return { | ||
_all = { | ||
verbose = true, | ||
coverage = true, | ||
output = "utfTerminal", | ||
jobs = 4, | ||
}, | ||
default = { | ||
ROOT = {"contract"}, | ||
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
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
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
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