Skip to content

Commit 351127f

Browse files
Add copilot-setup-steps.yml to install Flutter/Dart in agent environment
Co-authored-by: jaredmixpanel <10504508+jaredmixpanel@users.noreply.github.com>
1 parent 976030e commit 351127f

File tree

2 files changed

+39
-2
lines changed

2 files changed

+39
-2
lines changed

.github/copilot-instructions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ tool/ # Build scripts (bump_version.sh)
3535

3636
## Essential Commands
3737

38-
**Flutter and Dart are not installed in the sandbox environment.** You cannot run `flutter test`, `dart analyze`, or `dart format` directly. Rely on CI for validation.
38+
Flutter and Dart are pre-installed by `.github/workflows/copilot-setup-steps.yml`. You can run all standard commands directly.
3939

4040
```bash
41-
# Unit tests (requires Flutter SDK)
41+
# Unit tests
4242
flutter test
4343

4444
# Unit tests excluding golden tests (for compat-check on older Flutter)
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: "Copilot Setup Steps"
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
paths:
7+
- .github/workflows/copilot-setup-steps.yml
8+
pull_request:
9+
paths:
10+
- .github/workflows/copilot-setup-steps.yml
11+
12+
jobs:
13+
copilot-setup-steps:
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: read
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v4
20+
21+
- name: Set up Flutter
22+
uses: subosito/flutter-action@fd55f4c5af5b953cc57a2be44cb082c8f6635e8e # v2.21.0
23+
with:
24+
channel: stable
25+
flutter-version: "3.41.2"
26+
cache: true
27+
28+
- name: Install dependencies
29+
run: flutter pub get
30+
31+
- name: Verify setup
32+
run: |
33+
echo "Flutter version:"
34+
flutter --version
35+
echo ""
36+
echo "Dart version:"
37+
dart --version

0 commit comments

Comments
 (0)