Skip to content

feat: integrate matchstick into the graph CLI #35

feat: integrate matchstick into the graph CLI

feat: integrate matchstick into the graph CLI #35

Workflow file for this run

name: Rust CI
on:
push:
branches: [main]
paths:
- 'packages/napi-utils/**'
pull_request:
branches: [main]
paths:
- 'packages/napi-utils/**'
env:
CARGO_TERM_COLOR: always
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.77.0
- run: sudo apt-get install protobuf-compiler
- name: cargo check
working-directory: packages/napi-utils
run: |
cargo check
test:
name: Test Suite
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.77.0
- name: Install dependencies
working-directory: packages/napi-utils
run: |
sudo apt-get update
sudo apt-get -y install libpq-dev protobuf-compiler
- name: Run tests
working-directory: packages/napi-utils
run: cargo test
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.77.0
- name: install rustfmt
working-directory: packages/napi-utils
run: rustup component add rustfmt
- name: format
working-directory: packages/napi-utils
run: cargo fmt --all -- --check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.77.0
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get -y install libpq-dev protobuf-compiler
- name: install clippy
working-directory: packages/napi-utils
run: rustup component add clippy
- name: clippy
working-directory: packages/napi-utils
run: cargo clippy -- -D warnings