From 745f5e2b3a252efcf57bd11560e673c2d7d1d467 Mon Sep 17 00:00:00 2001 From: "J. Champagne" Date: Sat, 14 Mar 2026 01:53:32 -0400 Subject: [PATCH] feat(action): Add gitea action for continuous integration. --- {.github => .gitea}/workflows/ci.yml | 42 +++++----------------------- 1 file changed, 7 insertions(+), 35 deletions(-) rename {.github => .gitea}/workflows/ci.yml (55%) diff --git a/.github/workflows/ci.yml b/.gitea/workflows/ci.yml similarity index 55% rename from .github/workflows/ci.yml rename to .gitea/workflows/ci.yml index 565dfb5..86ab98b 100644 --- a/.github/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -10,30 +10,16 @@ env: CARGO_TERM_COLOR: always jobs: - check: - name: Check - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-latest, macos-latest] - steps: - - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@stable - with: - components: clippy, rustfmt - - uses: Swatinem/rust-cache@v2 - - name: Check - run: cargo check --workspace --all-targets - - clippy: - name: Clippy (strict) + lint: + name: Lint runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable with: - components: clippy - - uses: Swatinem/rust-cache@v2 + components: clippy, rustfmt + - name: Format + run: cargo fmt --all -- --check - name: Clippy run: | cargo clippy --workspace --all-targets -- \ @@ -47,26 +33,12 @@ jobs: -D clippy::print_stdout \ -D clippy::print_stderr - fmt: - name: Format - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@stable - with: - components: rustfmt - - name: Rustfmt - run: cargo fmt --all -- --check - test: name: Test - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-latest, macos-latest] + runs-on: ubuntu-latest + needs: lint steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable - - uses: Swatinem/rust-cache@v2 - name: Run tests run: cargo test --workspace