-
Notifications
You must be signed in to change notification settings - Fork 1
56 lines (47 loc) · 1.38 KB
/
copilot-setup-steps.yml
File metadata and controls
56 lines (47 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
name: "Copilot Setup Steps"
on:
workflow_dispatch:
push:
paths:
- .github/workflows/copilot-setup-steps.yml
pull_request:
paths:
- .github/workflows/copilot-setup-steps.yml
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}-copilot-setup-steps
cancel-in-progress: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_TERM_COLOR: always
jobs:
copilot-setup-steps:
runs-on: ubuntu-latest
permissions:
contents: write
actions: write
packages: write
pull-requests: write
issues: write
checks: write
deployments: write
steps:
- name: Checkout code
uses: actions/checkout@v5
- 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
with:
toolchain: nightly
components: rustfmt, clippy
- name: Install fish shell (for integration tests)
run: sudo apt-get update && sudo apt-get install -y fish
- name: Verify formatting compliance
run: cargo fmt --check
- 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