Skip to content

Commit

Permalink
update readme and actions
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenvechain committed Dec 26, 2023
1 parent c1cb1dd commit c118df6
Show file tree
Hide file tree
Showing 7 changed files with 53 additions and 7 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/integration-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,14 @@ jobs:
node-version: 18

- name: Run Tests
working-directory: integration_tests
run: |
cd integration_tests
yarn install
yarn test
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: |
integration_tests/results.json
4 changes: 3 additions & 1 deletion .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions integration_tests/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ node_modules
# solidity-coverage files
/coverage
/coverage.json

results.json
4 changes: 4 additions & 0 deletions integration_tests/.mocharc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@
"timeout": 40000,
"slow": 20000,
"parallel": true,
"reporter": "json",
"reporterOptions": [
"output=./results.json"
],
"_": ["test/**/*.ts"]
}
3 changes: 3 additions & 0 deletions integration_tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,8 @@
"typechain": "^8.3.0",
"typescript": ">=4.5.0",
"yarn": "^1.22.21"
},
"dependencies": {
"mocha-junit-reporter": "^2.2.1"
}
}
2 changes: 0 additions & 2 deletions integration_tests/test/accounts.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ describe("Accounts", function () {
it("should be able to get a fungible token balance", async function () {
const balance = await contracts.VTHO.balanceOf("0x7567d83b7b8d80addcb281a71d54fc7b3364ffed")

console.log("Balance:", balance.toString())

expect(balance).to.be.greaterThan(0)
})
})
36 changes: 33 additions & 3 deletions integration_tests/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2051,7 +2051,7 @@ [email protected]:
upper-case "^1.1.1"
upper-case-first "^1.1.0"

"charenc@>= 0.0.1":
[email protected], "charenc@>= 0.0.1":
version "0.0.2"
resolved "https://registry.npmjs.org/charenc/-/charenc-0.0.2.tgz"
integrity sha512-yrLQ/yVUFXkzg7EDQsPieE/53+0RlaWTs+wBrvW36cyilJ2SaDWfl4Yj7MtLTXleV9uEKefbAGUPv2/iWSooRA==
Expand Down Expand Up @@ -2388,7 +2388,7 @@ cross-fetch@^4.0.0:
dependencies:
node-fetch "^2.6.12"

"crypt@>= 0.0.1":
[email protected], "crypt@>= 0.0.1":
version "0.0.2"
resolved "https://registry.npmjs.org/crypt/-/crypt-0.0.2.tgz"
integrity sha512-mCxBlsHFYh9C+HVpiEacem8FEBnMXgU9gy4zmNC+SXAZNB/1idgp/aulFJ4FgCi7GPEVbfyng092GqL2k2rmow==
Expand Down Expand Up @@ -3934,6 +3934,11 @@ is-buffer@^2.0.5:
resolved "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.5.tgz"
integrity sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ==

is-buffer@~1.1.6:
version "1.1.6"
resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be"
integrity sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==

is-callable@^1.1.3:
version "1.2.7"
resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.2.7.tgz#3bc2a85ea742d9e36205dcacdd72ca1fdc51b055"
Expand Down Expand Up @@ -4366,6 +4371,15 @@ md5.js@^1.3.4:
inherits "^2.0.1"
safe-buffer "^5.1.2"

md5@^2.3.0:
version "2.3.0"
resolved "https://registry.yarnpkg.com/md5/-/md5-2.3.0.tgz#c3da9a6aae3a30b46b7b0c349b87b110dc3bda4f"
integrity sha512-T1GITYmFaKuO91vxyoQMFETst+O71VUPEU3ze5GNzDm0OWdP8v1ziTaAEPUr/3kLsY3Sftgz242A1SetQiDL7g==
dependencies:
charenc "0.0.2"
crypt "0.0.2"
is-buffer "~1.1.6"

[email protected]:
version "0.3.0"
resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748"
Expand Down Expand Up @@ -4505,7 +4519,7 @@ mkdirp-promise@^5.0.1:
dependencies:
mkdirp "*"

mkdirp@*:
mkdirp@*, mkdirp@^3.0.0:
version "3.0.1"
resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-3.0.1.tgz#e44e4c5607fb279c168241713cc6e0fea9adcb50"
integrity sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==
Expand All @@ -4529,6 +4543,17 @@ mnemonist@^0.38.0:
dependencies:
obliterator "^2.0.0"

mocha-junit-reporter@^2.2.1:
version "2.2.1"
resolved "https://registry.yarnpkg.com/mocha-junit-reporter/-/mocha-junit-reporter-2.2.1.tgz#739f5595d0f051d07af9d74e32c416e13a41cde5"
integrity sha512-iDn2tlKHn8Vh8o4nCzcUVW4q7iXp7cC4EB78N0cDHIobLymyHNwe0XG8HEHHjc3hJlXm0Vy6zcrxaIhnI2fWmw==
dependencies:
debug "^4.3.4"
md5 "^2.3.0"
mkdirp "^3.0.0"
strip-ansi "^6.0.1"
xml "^1.0.1"

[email protected], mocha@^10.0.0, mocha@^10.2.0:
version "10.2.0"
resolved "https://registry.npmjs.org/mocha/-/mocha-10.2.0.tgz"
Expand Down Expand Up @@ -7063,6 +7088,11 @@ xhr@^2.0.4, xhr@^2.3.3:
parse-headers "^2.0.0"
xtend "^4.0.0"

xml@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/xml/-/xml-1.0.1.tgz#78ba72020029c5bc87b8a81a3cfcd74b4a2fc1e5"
integrity sha512-huCv9IH9Tcf95zuYCsQraZtWnJvBtLVE0QHMOs8bWyZAFZNDcYjsPq1nEx8jKA9y+Beo9v+7OBPRisQTjinQMw==

[email protected]:
version "1.8.0"
resolved "https://registry.npmjs.org/xmlhttprequest/-/xmlhttprequest-1.8.0.tgz"
Expand Down

0 comments on commit c118df6

Please sign in to comment.