Skip to content

feat: add github workflows for building and checking fmt.. #7

feat: add github workflows for building and checking fmt..

feat: add github workflows for building and checking fmt.. #7

Workflow file for this run

name: Check lock file, fmt, clippy
on:
pull_request:
push:
branches:
- 'main'
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
test:

Check failure on line 13 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / Check lock file, fmt, clippy

Invalid workflow file

The workflow is not valid. .github/workflows/test.yml (Line: 13, Col: 3): The workflow must contain at least one job with no dependencies.
needs: pre-req # Ensure pre-req runs first
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Cache Rust Dependencies
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
yellowstone-vixen/target
key: cargo-${{ runner.os }}-${{ hashFiles('yellowstone-vixen/Cargo.lock') }}
restore-keys: cargo-${{ runner.os }}-
# Download protoc Artifact from pre-req.yml
- name: Download protoc Artifact
uses: actions/download-artifact@v4
with:
name: protoc
path: ~/.local/bin
# Set up Protoc Path
- name: Set up protoc Path
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
# Verify Protoc Installation
- name: Verify Protoc Version
run: protoc --version
# Check Cargo.lock
- name: Check lock file
run: |
cargo tree
git checkout Cargo.lock
cargo tree --frozen
# Run Formatting Check
- name: Check fmt
run: cargo +nightly fmt --all -- --check
# Run Clippy Linter
- name: Check clippy
run: cargo +nightly clippy --all-targets --tests -- -Dwarnings