Files
gitpulse/.gitea/workflows/ci.yml
7000pctAUTO f0658a99bc
Some checks failed
CI / build (push) Failing after 3s
CI / lint (push) Failing after 3s
CI / format (push) Failing after 3s
fix: update CI workflow to use Gitea Actions compatible syntax
2026-02-04 15:57:15 +00:00

57 lines
1.1 KiB
YAML

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Rust
run: |
rustup install stable
rustup default stable
- 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: Set up Rust
run: |
rustup install stable
rustup default stable
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y libgit2-dev pkg-config
- name: Run clippy
run: cargo clippy --all-features -- -D warnings
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Rust
run: |
rustup install stable
rustup default stable
- name: Check formatting
run: cargo fmt --all -- --check