Skip to content

Commit 81b5078

Browse files
committed
Enhance CI workflow with clippy checks, tests, and setup steps
1 parent 57950e0 commit 81b5078

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

.github/workflows/copilot-setup-steps.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,20 @@ jobs:
5050
- name: Verify formatting compliance
5151
run: cargo fmt --check
5252

53-
- run: cargo install --path . --debug
54-
- run: git ai hook install
55-
- run: git ai config set openai-api-key ${{ secrets.OPENAI_API_KEY }}
56-
- run: git ai config set model gpt-4.1
53+
- name: Run clippy to catch issues early
54+
run: cargo clippy --all-targets --all-features -- -D warnings
55+
56+
- name: Run tests to validate codebase
57+
run: cargo test --quiet
58+
59+
- name: Install git-ai binary
60+
run: cargo install --path . --debug
61+
62+
- name: Setup git-ai configuration
63+
run: |
64+
git ai hook install
65+
git ai config set openai-api-key ${{ secrets.OPENAI_API_KEY }}
66+
git ai config set model gpt-4.1
67+
68+
- name: Verify installation
69+
run: git ai --version

0 commit comments

Comments
 (0)