File tree Expand file tree Collapse file tree 1 file changed +63
-0
lines changed Expand file tree Collapse file tree 1 file changed +63
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Copilot Setup Steps
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ paths : [.github/workflows/copilot-setup-steps.yml]
7+ pull_request :
8+ paths : [.github/workflows/copilot-setup-steps.yml]
9+
10+ env :
11+ GO_VERSION : " 1.24"
12+ NODE_VERSION : 22
13+
14+ jobs :
15+ copilot-setup-steps :
16+ runs-on : ubuntu-latest
17+ permissions :
18+ contents : read
19+
20+ steps :
21+ - uses : actions/checkout@v5
22+
23+ # Go + Node versions match your helper
24+ - uses : actions/setup-go@v6
25+ with :
26+ go-version : ${{ env.GO_VERSION }}
27+ cache-dependency-path : go.sum
28+
29+ - uses : actions/setup-node@v5
30+ with :
31+ node-version : ${{ env.NODE_VERSION }}
32+ cache : npm
33+ cache-dependency-path : package-lock.json
34+
35+ # Zig is used by your Linux CGO builds (kept available, but we won't build here)
36+ - uses : mlugg/setup-zig@v2
37+
38+ # Task CLI for your Taskfile
39+ - uses : arduino/setup-task@v2
40+ with :
41+ version : 3.x
42+ repo-token : ${{ secrets.GITHUB_TOKEN }}
43+
44+ # Git HTTPS so deps resolve non-interactively
45+ - name : Force git deps to HTTPS
46+ run : |
47+ git config --global url.https://github.com/.insteadof ssh://git@github.com/
48+ git config --global url.https://github.com/.insteadof git@github.com:
49+
50+ # Warm caches only (no builds)
51+ - uses : nick-fields/retry@v3
52+ name : npm ci
53+ with :
54+ command : npm ci --no-audit --no-fund --timing --foreground-scripts
55+ retry_on : error
56+ max_attempts : 3
57+ timeout_minutes : 5
58+ env :
59+ GIT_ASKPASS : " echo"
60+ GIT_TERMINAL_PROMPT : " 0"
61+
62+ - name : Pre-fetch Go modules
63+ run : go mod download
You can’t perform that action at this time.
0 commit comments