Release v0.5.0 (#202) #632
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
on: | |
push: | |
branches: | |
- master | |
- staging | |
pull_request: | |
name: rosetta-wallet | |
jobs: | |
rustfmt: | |
runs-on: self-hosted | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
- name: Install rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
components: rustfmt, clippy | |
targets: x86_64-unknown-linux-musl | |
- name: Install dprint | |
run: cargo install --locked dprint | |
- name: Dprint check | |
run: dprint check | |
- name: cargo fmt | |
run: cargo +nightly fmt --all -- --check | |
- name: Run ShellCheck | |
uses: ludeeus/action-shellcheck@master | |
env: | |
SHELLCHECK_OPTS: --enable=all --shell=bash | |
with: | |
severity: style | |
scandir: './scripts' | |
clippy: | |
runs-on: self-hosted | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
- name: Install rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
components: clippy | |
- name: cargo clippy | |
run: cargo clippy --locked --workspace --examples --tests --all-features -- -D warnings -D clippy::unwrap_used -D clippy::expect_used -D clippy::nursery -D clippy::pedantic -A clippy::module_name_repetitions | |
cargo-deny: | |
runs-on: self-hosted | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
- name: cargo-deny check | |
uses: EmbarkStudios/cargo-deny-action@v1 | |
test: | |
runs-on: self-hosted | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
- run: sudo add-apt-repository ppa:ethereum/ethereum | |
- run: sudo apt-get update -y | |
- name: Install deps | |
run: sudo apt-get install -y musl-dev musl-tools solc | |
- name: Install rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
target: x86_64-unknown-linux-musl | |
- name: Cleanup Docker | |
run: ./scripts/reset_docker.sh | |
- name: Pull nodes | |
run: ./scripts/pull_nodes.sh | |
- name: cargo test | |
run: cargo test --locked --all-features --workspace |