Docker build for arm64 #35
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
name: Tests | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
rust_tests: | |
name: Rust Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
components: clippy, rustfmt | |
override: true | |
profile: minimal | |
- name: Setup trunk | |
uses: jetli/trunk-action@v0.1.0 | |
with: | |
version: 'latest' | |
- uses: actions/cache@v2 | |
with: | |
path: | | |
~/.cargo/registry | |
~/.cargo/git | |
target | |
key: cargo-${{ runner.os }}-rust-tests-${{ hashFiles('**/Cargo.toml') }} | |
restore-keys: | | |
cargo-${{ runner.os }}-rust-tests- | |
cargo-${{ runner.os }}- | |
- name: Check formatting | |
working-directory: . | |
run: cargo fmt --check | |
- name: Check clippy ln-websocket-proxy | |
working-directory: . | |
run: cargo clippy --all-features -- -D warnings | |
- name: Run all cargo tests besides node-manager | |
working-directory: . | |
run: cargo test --all-features --bins --lib |