Skip to content

update issue addres #4889

update issue addres

update issue addres #4889

Workflow file for this run

name: Test
on:
push:
branches-ignore:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
FROM_SHARED_RUNNER: true
jobs:
linux-x86-64-unit:
timeout-minutes: 90
runs-on: ubuntu-latest
env:
BOB_PASSPHRASE: ${{ secrets.BOB_PASSPHRASE_LINUX }}
BOB_USERPASS: ${{ secrets.BOB_USERPASS_LINUX }}
ALICE_PASSPHRASE: ${{ secrets.ALICE_PASSPHRASE_LINUX }}
ALICE_USERPASS: ${{ secrets.ALICE_USERPASS_LINUX }}
TELEGRAM_API_KEY: ${{ secrets.TELEGRAM_API_KEY }}
steps:
- uses: actions/checkout@v3
- name: Install toolchain
run: |
rustup toolchain install nightly-2023-06-01 --no-self-update --profile=minimal
rustup default nightly-2023-06-01
- name: Install build deps
uses: ./.github/actions/deps-install
with:
deps: ('protoc')
- name: Cargo cache
uses: ./.github/actions/cargo-cache
- name: Test
run: |
cargo test --bins --lib --no-fail-fast
mac-x86-64-unit:
timeout-minutes: 90
runs-on: macos-latest
env:
BOB_PASSPHRASE: ${{ secrets.BOB_PASSPHRASE_MACOS }}
BOB_USERPASS: ${{ secrets.BOB_USERPASS_MACOS }}
ALICE_PASSPHRASE: ${{ secrets.ALICE_PASSPHRASE_MACOS }}
ALICE_USERPASS: ${{ secrets.ALICE_USERPASS_MACOS }}
TELEGRAM_API_KEY: ${{ secrets.TELEGRAM_API_KEY }}
steps:
- uses: actions/checkout@v3
- name: Install toolchain
run: |
rustup toolchain install nightly-2023-06-01 --no-self-update --profile=minimal
rustup default nightly-2023-06-01
- name: Install build deps
uses: ./.github/actions/deps-install
with:
deps: ('protoc')
- name: Cargo cache
uses: ./.github/actions/cargo-cache
- name: Test
run: |
cargo test --bins --lib --no-fail-fast
win-x86-64-unit:
timeout-minutes: 90
runs-on: windows-latest
env:
BOB_PASSPHRASE: ${{ secrets.BOB_PASSPHRASE_WIN }}
BOB_USERPASS: ${{ secrets.BOB_USERPASS_WIN }}
ALICE_PASSPHRASE: ${{ secrets.ALICE_PASSPHRASE_WIN }}
ALICE_USERPASS: ${{ secrets.ALICE_USERPASS_WIN }}
TELEGRAM_API_KEY: ${{ secrets.TELEGRAM_API_KEY }}
steps:
- uses: actions/checkout@v3
- name: Install toolchain
run: |
rustup toolchain install nightly-2023-06-01 --no-self-update --profile=minimal
rustup default nightly-2023-06-01
- name: Install build deps
uses: ./.github/actions/deps-install
with:
deps: ('protoc')
- name: Cargo cache
uses: ./.github/actions/cargo-cache
- name: Test
run: |
cargo test --bins --lib --no-fail-fast
linux-x86-64-kdf-integration:
timeout-minutes: 90
runs-on: ubuntu-latest
env:
BOB_PASSPHRASE: ${{ secrets.BOB_PASSPHRASE_LINUX }}
BOB_USERPASS: ${{ secrets.BOB_USERPASS_LINUX }}
ALICE_PASSPHRASE: ${{ secrets.ALICE_PASSPHRASE_LINUX }}
ALICE_USERPASS: ${{ secrets.ALICE_USERPASS_LINUX }}
TELEGRAM_API_KEY: ${{ secrets.TELEGRAM_API_KEY }}
steps:
- uses: actions/checkout@v3
- name: Install toolchain
run: |
rustup toolchain install nightly-2023-06-01 --no-self-update --profile=minimal
rustup default nightly-2023-06-01
- name: Install build deps
uses: ./.github/actions/deps-install
with:
deps: ('protoc')
- name: Cargo cache
uses: ./.github/actions/cargo-cache
- name: Test
run: |
wget -O - https://raw.githubusercontent.com/KomodoPlatform/komodo/master/zcutil/fetch-params-alt.sh | bash
cargo test --test 'mm2_tests_main' --no-fail-fast
mac-x86-64-kdf-integration:
timeout-minutes: 90
runs-on: macos-latest
env:
BOB_PASSPHRASE: ${{ secrets.BOB_PASSPHRASE_MACOS }}
BOB_USERPASS: ${{ secrets.BOB_USERPASS_MACOS }}
ALICE_PASSPHRASE: ${{ secrets.ALICE_PASSPHRASE_MACOS }}
ALICE_USERPASS: ${{ secrets.ALICE_USERPASS_MACOS }}
TELEGRAM_API_KEY: ${{ secrets.TELEGRAM_API_KEY }}
steps:
- uses: actions/checkout@v3
- name: Install toolchain
run: |
rustup toolchain install nightly-2023-06-01 --no-self-update --profile=minimal
rustup default nightly-2023-06-01
- name: Install build deps
uses: ./.github/actions/deps-install
with:
deps: ('protoc')
- name: Set loopback address
run: ./scripts/ci/lo0_config.sh
- name: Cargo cache
uses: ./.github/actions/cargo-cache
- name: Test
run: |
wget -O - https://raw.githubusercontent.com/KomodoPlatform/komodo/master/zcutil/fetch-params-alt.sh | bash
cargo test --test 'mm2_tests_main' --no-fail-fast
win-x86-64-kdf-integration:
timeout-minutes: 90
runs-on: windows-latest
env:
BOB_PASSPHRASE: ${{ secrets.BOB_PASSPHRASE_WIN }}
BOB_USERPASS: ${{ secrets.BOB_USERPASS_WIN }}
ALICE_PASSPHRASE: ${{ secrets.ALICE_PASSPHRASE_WIN }}
ALICE_USERPASS: ${{ secrets.ALICE_USERPASS_WIN }}
TELEGRAM_API_KEY: ${{ secrets.TELEGRAM_API_KEY }}
steps:
- uses: actions/checkout@v3
- name: Install toolchain
run: |
rustup toolchain install nightly-2023-06-01 --no-self-update --profile=minimal
rustup default nightly-2023-06-01
- name: Install build deps
uses: ./.github/actions/deps-install
with:
deps: ('protoc')
- name: Cargo cache
uses: ./.github/actions/cargo-cache
- name: Test
run: |
Invoke-WebRequest -Uri https://github.com/KomodoPlatform/komodo/raw/d456be35acd1f8584e1e4f971aea27bd0644d5c5/zcutil/wget64.exe -OutFile \wget64.exe
Invoke-WebRequest -Uri https://raw.githubusercontent.com/KomodoPlatform/komodo/master/zcutil/fetch-params-alt.bat -OutFile \cmd.bat && \cmd.bat
cargo test --test 'mm2_tests_main' --no-fail-fast
docker-tests:
timeout-minutes: 90
runs-on: ubuntu-latest
env:
BOB_PASSPHRASE: ${{ secrets.BOB_PASSPHRASE_LINUX }}
BOB_USERPASS: ${{ secrets.BOB_USERPASS_LINUX }}
ALICE_PASSPHRASE: ${{ secrets.ALICE_PASSPHRASE_LINUX }}
ALICE_USERPASS: ${{ secrets.ALICE_USERPASS_LINUX }}
TELEGRAM_API_KEY: ${{ secrets.TELEGRAM_API_KEY }}
steps:
- uses: actions/checkout@v3
- name: Install toolchain
run: |
rustup toolchain install nightly-2023-06-01 --no-self-update --profile=minimal
rustup default nightly-2023-06-01
- name: Install build deps
uses: ./.github/actions/deps-install
with:
deps: ('protoc')
- name: Cargo cache
uses: ./.github/actions/cargo-cache
- name: Test
run: |
wget -O - https://raw.githubusercontent.com/KomodoPlatform/komodo/v0.8.1/zcutil/fetch-params-alt.sh | bash
cargo test --test 'docker_tests_main' --features run-docker-tests --no-fail-fast
wasm:
timeout-minutes: 90
runs-on: ubuntu-latest
env:
BOB_PASSPHRASE: ${{ secrets.BOB_PASSPHRASE_LINUX }}
BOB_USERPASS: ${{ secrets.BOB_USERPASS_LINUX }}
ALICE_PASSPHRASE: ${{ secrets.ALICE_PASSPHRASE_LINUX }}
ALICE_USERPASS: ${{ secrets.ALICE_USERPASS_LINUX }}
TELEGRAM_API_KEY: ${{ secrets.TELEGRAM_API_KEY }}
steps:
- uses: actions/checkout@v3
- name: Install toolchain
run: |
rustup toolchain install nightly-2023-06-01 --no-self-update --profile=minimal
rustup default nightly-2023-06-01
rustup target add wasm32-unknown-unknown
- name: Install build deps
uses: ./.github/actions/deps-install
with:
deps: ('protoc')
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: Install firefox and geckodriver
run: |
sudo apt-get update -y
sudo apt-get install -y firefox
wget https://github.com/mozilla/geckodriver/releases/download/v0.32.2/geckodriver-v0.32.2-linux64.tar.gz
sudo tar -xzvf geckodriver-v0.32.2-linux64.tar.gz -C /bin
sudo chmod +x /bin/geckodriver
- name: Cargo cache
uses: ./.github/actions/cargo-cache
- name: Test
run: WASM_BINDGEN_TEST_TIMEOUT=480 GECKODRIVER=/bin/geckodriver wasm-pack test --firefox --headless mm2src/mm2_main