Files
gitpulse/.gitea/workflows/ci.yml
7000pctAUTO cbafec8b5e
Some checks failed
CI / build (push) Failing after 3m41s
CI / lint (push) Failing after 2m45s
CI / format (push) Failing after 36s
fix: add Rust/Cargo CI workflow for gitpulse project
2026-02-04 15:48:28 +00:00

70 lines
1.4 KiB
YAML

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgit2-dev pkg-config
- name: Build project
run: cargo build --release
- name: Run tests
run: cargo test --all
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgit2-dev pkg-config
- name: Run clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-features -- -D warnings
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Check formatting
run: cargo fmt --all -- --check