Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 8 additions & 22 deletions .github/workflows/sub-app-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,10 @@ jobs:
uses: actions/checkout@v3

- name: "Install Rust ${{ inputs.version }}"
uses: WalletConnect/actions-rs/toolchain@1.0.0
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ vars.RUST_VERSION }}
profile: 'minimal'
components: 'cargo,clippy'
override: true
components: clippy

- name: Install Protoc
uses: arduino/setup-protoc@v2
Expand All @@ -34,10 +32,7 @@ jobs:
uses: mozilla-actions/sccache-action@v0.0.3

- name: "Clippy"
uses: WalletConnect/actions-rs/cargo@1.0.0
with:
command: clippy
args: -- -D warnings
run: cargo clippy -- -D warnings

formatting:
name: Formatting
Expand All @@ -47,20 +42,16 @@ jobs:
uses: actions/checkout@v3

- name: "Install Rust ${{ inputs.version }}"
uses: WalletConnect/actions-rs/toolchain@1.0.0
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ vars.RUST_VERSION }}
profile: 'default'
override: true
components: rustfmt

- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.3

- name: "Check Formatting"
uses: WalletConnect/actions-rs/cargo@1.0.0
with:
command: fmt
args: -- --check
run: cargo fmt -- --check

tests:
name: Tests
Expand All @@ -70,11 +61,9 @@ jobs:
uses: actions/checkout@v3

- name: "Install Rust ${{ inputs.version }}"
uses: WalletConnect/actions-rs/toolchain@1.0.0
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ vars.RUST_VERSION }}
profile: 'default'
override: true

- name: Install Protoc
uses: arduino/setup-protoc@v2
Expand All @@ -85,7 +74,4 @@ jobs:
uses: mozilla-actions/sccache-action@v0.0.3

- name: "Unit Tests"
uses: WalletConnect/actions-rs/cargo@1.0.0
with:
command: test
args: --all-features
run: cargo test --all-features
Loading