Skip to content

ci: bump github/codeql-action from 4.35.1 to 4.36.2 #465

ci: bump github/codeql-action from 4.35.1 to 4.36.2

ci: bump github/codeql-action from 4.35.1 to 4.36.2 #465

Workflow file for this run

name: CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6.0.2
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@4be9e76fd7c4901c61fb841f559994984270fce7 # stable
with:
toolchain: stable
- name: Cache cargo registry
uses: actions/cache@v5
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y pkg-config libssl-dev libpq-dev
- name: Build
run: cargo build --release --bin lonkero
- name: Build check (all features)
run: cargo check --all-features --lib --bin lonkero
test:
name: Test
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout repository
uses: actions/checkout@v6.0.2
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@4be9e76fd7c4901c61fb841f559994984270fce7 # stable
- name: Cache cargo registry
uses: actions/cache@v5
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y pkg-config libssl-dev libpq-dev
- name: Run tests
# Tests have compilation errors - skip until fixed
run: |
echo "::warning::Test compilation errors exist - skipping tests"
echo "Run 'cargo test' locally to see issues"
# run: cargo test --lib --bins
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6.0.2
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@4be9e76fd7c4901c61fb841f559994984270fce7 # stable
with:
components: clippy
- name: Cache cargo registry
uses: actions/cache@v5
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y pkg-config libssl-dev libpq-dev
- name: Run Clippy
run: |
# Run clippy on lib and main binary only
# Allow warnings (141 pre-existing), only fail on errors
cargo clippy --lib --bin lonkero 2>&1 | tee clippy-output.txt
if grep -q "^error\[" clippy-output.txt; then
echo "::error::Clippy found compilation errors"
exit 1
fi
WARNINGS=$(grep -c "^warning:" clippy-output.txt || echo "0")
echo "::notice::Clippy completed with $WARNINGS warnings"