-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: run integration and regression tests on other platforms (#93)
* tests: add script to download test dependencies from fallback mirrors * tests: use the new download_deps script, run tests on macos * ci: download proper artifact for macos * chore: make download_deps script download everything to dir named `monero_c` when ran directly * tests: await downloading deps * tests download proper monero_c version in prepareMoneroC * tests: fix typos * tests: add file data for more targets * tests: print why retrieving tags failed * chore: change mirror url endpoint from `monero_c` to `download_mirror` * tests: use cached releases endpoint to prevent ratelimits * ci: remove [email protected] dependency * tests: fix macos dylib path * feat!(monero.ts): make `createTransactionMultDest` optionally return `null` * feat(monero.ts): make `Wallet_reconnectDevice` symbol optional * tests: don't try to extract file if out already exists * tests: remove unnecesary directory rm calls * ci: set regression tests to use canary
- Loading branch information
Showing
11 changed files
with
451 additions
and
125 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 |
---|---|---|
|
@@ -271,7 +271,7 @@ jobs: | |
xcode-version: '15.4' | ||
- name: install dependencies | ||
run: | | ||
brew install ccache unbound [email protected] zmq autoconf automake libtool && brew link [email protected] | ||
brew install ccache unbound zmq autoconf automake libtool | ||
- name: Patch sources | ||
run: | | ||
git config --global --add safe.directory '*' | ||
|
@@ -404,7 +404,8 @@ jobs: | |
cd impls/monero.ts | ||
deno run --unstable-ffi --allow-ffi checksum.ts | ||
regression_check: | ||
regression_tests_linux: | ||
name: linux regression tests | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
|
@@ -431,7 +432,35 @@ jobs: | |
- name: Run regression tests | ||
run: COIN="${{ matrix.coin }}" deno test -A tests/regression.test.ts | ||
|
||
integration_check: | ||
regression_tests_macos: | ||
name: macos regression tests | ||
strategy: | ||
matrix: | ||
coin: [monero, wownero] | ||
needs: [ | ||
lib_macos | ||
] | ||
runs-on: macos-14 | ||
steps: | ||
- uses: denoland/setup-deno@v2 | ||
with: | ||
deno-version: canary | ||
|
||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
submodules: recursive | ||
|
||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: macos ${{ matrix.coin }} | ||
path: release/${{ matrix.coin }} | ||
|
||
- name: Run regression tests | ||
run: COIN="${{ matrix.coin }}" deno test -A tests/regression.test.ts | ||
|
||
integration_tests_linux: | ||
name: linux integration tests | ||
strategy: | ||
matrix: | ||
coin: [monero, wownero] | ||
|
@@ -462,6 +491,38 @@ jobs: | |
SECRET_WALLET_RESTORE_HEIGHT: ${{ secrets.SECRET_WALLET_RESTORE_HEIGHT }} | ||
|
||
|
||
integration_tests_macos: | ||
name: macos integration tests | ||
strategy: | ||
matrix: | ||
coin: [monero, wownero] | ||
needs: [ | ||
lib_macos | ||
] | ||
runs-on: macos-14 | ||
steps: | ||
- uses: denoland/setup-deno@v2 | ||
with: | ||
deno-version: v2.x | ||
|
||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
submodules: recursive | ||
|
||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: macos ${{ matrix.coin }} | ||
path: release/${{ matrix.coin }} | ||
|
||
- name: Run integration tests | ||
run: COIN="${{ matrix.coin }}" deno test -A tests/integration.test.ts | ||
env: | ||
SECRET_WALLET_PASSWORD: ${{ secrets.SECRET_WALLET_PASSWORD }} | ||
SECRET_WALLET_MNEMONIC: ${{ secrets.SECRET_WALLET_MNEMONIC }} | ||
SECRET_WALLET_RESTORE_HEIGHT: ${{ secrets.SECRET_WALLET_RESTORE_HEIGHT }} | ||
|
||
|
||
comment_pr: | ||
name: comment on pr | ||
runs-on: ubuntu-latest | ||
|
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,6 +1,4 @@ | ||
release/ | ||
build/ | ||
tests/monero-cli | ||
tests/wownero-cli | ||
tests/libs | ||
tests/dependencies | ||
tests/wallets |
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 |
---|---|---|
|
@@ -11,17 +11,15 @@ Building on linux has been tested on | |
<tab title="Native"> | ||
<code-block> | ||
$ # install xcode 15.4 (or current latest) | ||
$ brew install ccache unbound [email protected] zmq autoconf automake libtool | ||
$ brew link [email protected] | ||
$ brew install ccache unbound zmq autoconf automake libtool | ||
</code-block> | ||
</tab> | ||
<tab title="Native (Rosetta2)"> | ||
<code-block> | ||
$ # install xcode 15.4 (or current latest) | ||
$ brew install ccache unbound [email protected] zmq autoconf automake libtool | ||
$ brew link [email protected] | ||
$ arch -x86_64 brew install ccache unbound [email protected] zmq autoconf automake libtool | ||
$ arch -x86_64 brew link [email protected] | ||
$ brew install ccache unbound zmq autoconf automake libtool | ||
$ arch -x86_64 brew install ccache unbound zmq autoconf automake libtool | ||
$ arch -x86_64 brew link | ||
</code-block> | ||
</tab> | ||
<tab title="Linux"> | ||
|
@@ -83,4 +81,4 @@ $ ./build_single.sh monero aarch64-apple-darwin-11 -j$(nproc) | |
|
||
### Creating fat library | ||
|
||
[Check cake_wallet solution](https://github.com/cake-tech/cake_wallet/blob/main/scripts/macos/build_monero_all.sh) | ||
[Check cake_wallet solution](https://github.com/cake-tech/cake_wallet/blob/main/scripts/macos/build_monero_all.sh) |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.