Skip to content

Commit 1eb6f92

Browse files
committed
ci: add copilot-setup-steps.yml for Copilot Workspace
1 parent 1b938a6 commit 1eb6f92

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/copilot-setup-steps.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Copilot Setup Steps
2+
on: workflow_dispatch
3+
4+
jobs:
5+
setup:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v4
9+
10+
- uses: actions/setup-node@v4
11+
with:
12+
node-version: '22'
13+
14+
- uses: actions/setup-python@v5
15+
with:
16+
python-version: '3.12'
17+
18+
- uses: actions/setup-go@v5
19+
with:
20+
go-version: 'stable'
21+
22+
- name: Install Node dependencies
23+
run: |
24+
if [ -f package-lock.json ]; then npm ci; fi
25+
if [ -f package.json ] && [ ! -f package-lock.json ]; then npm install; fi
26+
27+
- name: Install Python dependencies
28+
run: |
29+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
30+
if [ -f pyproject.toml ]; then pip install -e '.[dev]' 2>/dev/null || pip install -e .; fi
31+
32+
- name: Install Go dependencies
33+
run: |
34+
if [ -f go.mod ]; then go mod download; fi

0 commit comments

Comments
 (0)