Initial upload: DotMigrate dotfiles migration tool with CI/CD
Some checks failed
CI / test (push) Has been cancelled
CI / release (push) Has been cancelled

This commit is contained in:
2026-02-04 09:52:55 +00:00
parent 87a0b680cc
commit dc40ead87e

68
.gitea/workflows/ci.yml Normal file
View File

@@ -0,0 +1,68 @@
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Rust
uses: actions/setup-rust@v1
with:
toolchain: stable
profile: minimal
- name: Cache dependencies
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Build
run: cargo build --features full
- name: Run tests
run: cargo test --features full
- name: Run clippy
run: cargo clippy --features full -- -D warnings
- name: Check formatting
run: cargo fmt --check
release:
needs: test
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/checkout@v4
- name: Setup Rust
uses: actions/setup-rust@v1
with:
toolchain: stable
profile: minimal
- name: Build release
run: cargo build --release --features full
- name: Create Release
uses: https://gitea.com/actions/release-action@main
with:
files: |
target/release/dotmigrate
name: ${{ github.ref_name }}
body: "Release ${{ github.ref_name }}"