Skip to content

test: add unit test for get_node_name fn #7

test: add unit test for get_node_name fn

test: add unit test for get_node_name fn #7

Workflow file for this run

on:
push:
paths:
- .github/workflows/ci.yml
- '**.rs'
- '**/Cargo.toml'
- '**/Cargo.lock'
pull_request:
paths:
- .github/workflows/ci.yml
- '**.rs'
- '**/Cargo.toml'
- '**/Cargo.lock'
env:
CARGO_TERM_COLOURS: always
name: continuous integration
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: cache cargo registry
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: install rust toolchain
run: |
rustup update
rustup component add clippy rustfmt
rustup install nightly
- name: fmt
run: cargo fmt -- --check
- name: clippy
run: cargo clippy
- name: build
run: cargo build