-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (44 loc) · 1.76 KB
/
Copy pathcopilot-validation.yml
File metadata and controls
55 lines (44 loc) · 1.76 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
name: Copilot Development Validation
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main ]
jobs:
validate:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run linting
run: npm run lint
- name: Type checking
run: npx tsc --noEmit
- name: Build project
run: npm run build
- name: Validate Copilot configuration
run: |
echo "Validating Copilot configuration files..."
test -f .github/INSTRUCTIONS.md || (echo "Missing .github/INSTRUCTIONS.md" && exit 1)
test -f .copilot/instructions.md || (echo "Missing .copilot/instructions.md" && exit 1)
test -f .copilot/dev-environment.yml || (echo "Missing .copilot/dev-environment.yml" && exit 1)
test -f .github/copilot-mcp.json || (echo "Missing .github/copilot-mcp.json" && exit 1)
echo "All Copilot configuration files are present ✅"
- name: Build success notification
if: success()
run: |
echo "🎉 Build successful! The repository is properly configured for GitHub Copilot."
echo "📚 Repository instructions are available in .github/INSTRUCTIONS.md"
echo "🤖 Custom Copilot instructions are in .copilot/instructions.md"
echo "🛠️ Development environment is configured in .copilot/dev-environment.yml"
echo "🔧 MCP configuration is available in .github/copilot-mcp.json"