Skip to content

build(deps): bump openssl from 0.10.57 to 0.10.60 #1330

build(deps): bump openssl from 0.10.57 to 0.10.60

build(deps): bump openssl from 0.10.57 to 0.10.60 #1330

Workflow file for this run

name: Rust
on:
- push
env:
CARGO_TERM_COLOR: always
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
targets: x86_64-unknown-linux-gnu
components: rustfmt
- uses: Swatinem/rust-cache@v2
- name: Check Formatting
run: cargo fmt --all -- --check
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
targets: x86_64-unknown-linux-gnu
components: clippy
- uses: olix0r/cargo-action-fmt/setup@v2
- uses: Swatinem/rust-cache@v2
- name: Lint src
run: cargo clippy --locked --all-features --lib --message-format=json -- -D warnings | cargo-action-fmt
- name: Lint tests
run: cargo clippy --locked --all-features --tests --message-format=json -- -D warnings | cargo-action-fmt
env:
TEST_WALLET_SEED: ""
lint-wasm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
targets: wasm32-unknown-unknown
components: clippy
- uses: olix0r/cargo-action-fmt/setup@v2
- uses: jetli/wasm-pack-action@v0.4.0
- uses: Swatinem/rust-cache@v2
- name: Add wasm32 target
run: rustup target add wasm32-unknown-unknown
- name: Lint src (wasm32)
run: cargo clippy --locked --target wasm32-unknown-unknown --lib --message-format=json -- -D warnings | cargo-action-fmt
- name: Lint tests (wasm32)
run: cargo clippy --locked --target wasm32-unknown-unknown --tests --message-format=json -- -D warnings | cargo-action-fmt
env:
TEST_WALLET_SEED: ""
test:
runs-on: ubuntu-latest
needs: lint
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
targets: x86_64-unknown-linux-gnu
components: clippy, rustfmt
# - uses: Swatinem/rust-cache@v2
- name: Up Bitcoin Node & RGB Proxy
run: |
docker compose up -d node1 rgb-proxy
- name: Setup Bitcoin Node
run: |
sleep 5
docker-compose exec -T node1 cli loadwallet default
docker-compose exec -T node1 cli -generate 500
docker-compose exec -T node1 cli sendtoaddress $MAIN_VAULT_ADDRESS 10
docker-compose exec -T node1 cli sendtoaddress $MAIN_VAULT_ADDRESS 10
docker-compose exec -T node1 cli sendtoaddress $MAIN_VAULT_ADDRESS 10
docker-compose exec -T node1 cli -generate 1
env:
MAIN_VAULT_ADDRESS: ${{ secrets.MAIN_VAULT_ADDRESS }}
RUST_BACKTRACE: 1
- name: RGB Tests
run: cargo test --locked --features server --test rgb -- rgb --nocapture --test-threads 1
env:
TEST_WALLET_SEED: ${{ secrets.TEST_WALLET_SEED }}
RUST_BACKTRACE: 1
- name: Wallet, LN & Payjoin Tests
run: cargo test --locked -- --skip rgb --test-threads 1 --nocapture
env:
TEST_WALLET_SEED: ${{ secrets.TEST_WALLET_SEED }}
RUST_BACKTRACE: 1
test-wasm:
runs-on: ubuntu-latest
needs: lint-wasm
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
targets: wasm32-unknown-unknown
# - uses: Swatinem/rust-cache@v2
- uses: jetli/wasm-pack-action@v0.4.0
- name: Up Bitcoin Node & RGB Proxy
run: |
docker compose up -d node1 rgb-proxy
- name: Setup Bitcoin Node
run: |
sleep 5
docker-compose exec -T node1 cli loadwallet default
docker-compose exec -T node1 cli -generate 500
docker-compose exec -T node1 cli sendtoaddress $MAIN_VAULT_ADDRESS 10
docker-compose exec -T node1 cli sendtoaddress $RGB_VAULT_ADDRESS 10
docker-compose exec -T node1 cli -generate 1
env:
MAIN_VAULT_ADDRESS: ${{ secrets.MAIN_VAULT_ADDRESS }}
RGB_VAULT_ADDRESS: ${{ secrets.RGB_VAULT_ADDRESS }}
RUST_BACKTRACE: 1
- name: Run bitmaskd node
run: cargo run --locked --features server & sleep 1
- name: Test WASM
run: wasm-pack test --headless --chrome
env:
TEST_WALLET_SEED: ${{ secrets.TEST_WALLET_SEED }}
WASM_BINDGEN_TEST_TIMEOUT: 240
RUST_BACKTRACE: 1