Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 29 additions & 10 deletions .github/workflows/copilot-setup-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
name: "Copilot Setup Steps"

on:
workflow_dispatch:
push:
paths:
- .github/workflows/copilot-setup-steps.yml
pull_request:
paths:
- .github/workflows/copilot-setup-steps.yml
Expand Down Expand Up @@ -33,15 +29,38 @@ jobs:
- name: Checkout code
uses: actions/checkout@v5

- name: Setup Rust nightly toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: nightly
components: rustfmt, clippy

- name: Cache Rust dependencies
uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true

- name: Setup Rust nightly toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
# Fish shell is required for integration tests in tests/ directory
- name: Install fish shell (for integration tests)
run: sudo apt-get update && sudo apt-get install -y --no-install-recommends fish

- name: Verify formatting compliance
run: cargo fmt --check

- name: Run clippy to catch issues early
run: cargo clippy --all-targets --all-features -- -D warnings

- name: Validate code compiles
run: cargo check --all-targets --all-features

- name: Install git-ai binary
run: cargo install --path . --debug

- name: Setup git-ai configuration
run: |
git ai hook install
git ai config set openai-api-key ${{ secrets.OPENAI_API_KEY }}
git ai config set model gpt-4.1-nano

- run: cargo install --path . --debug
- run: git ai hook install
- run: git ai config set openai-api-key ${{ secrets.OPENAI_API_KEY }}
- run: git ai config set model gpt-4.1
- name: Verify installation
run: git ai --version
Loading