Skip to content

feat: add support for configuring branch name prefix #195

feat: add support for configuring branch name prefix

feat: add support for configuring branch name prefix #195

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
security-events: write
contents: read
jobs:
quality:
name: Check, Test & Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Cache cargo registry & build
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Check
run: cargo check
- name: Format check
run: cargo fmt --all -- --check
- name: Run unit tests
run: cargo test
- name: Build release binary
run: cargo build --release
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: grove-build
path: target/release/grove
quality-windows:
name: Check, Test & Build (Windows)
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Cache cargo registry & build
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Check
run: cargo check
- name: Format check
run: cargo fmt --all -- --check
- name: Run unit tests
run: cargo test
- name: Build release binary
run: cargo build --release
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: grove-build-windows
path: target/release/grove.exe
integration:
name: Integration Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Cache cargo registry & build
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Build release binary
run: cargo build --release
- name: Add grove to PATH
run: cp target/release/grove grove && echo "${{ github.workspace }}" >> $GITHUB_PATH
- name: Run integration tests
uses: captainsafia/hone/hone-github-action@main
with:
version: 'preview'
tests: 'test/integration/*.hone'