Skip to content

Commit 3f87aca

Browse files
authored
Merge pull request #3357 from gdg-x/abraham-patch-1
Add GitHub Actions workflow for Copilot setup
2 parents a077060 + 4476430 commit 3f87aca

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Copilot
2+
on: workflow_dispatch
3+
4+
jobs:
5+
test:
6+
runs-on: ubuntu-latest
7+
permissions:
8+
contents: read # for actions/checkout
9+
steps:
10+
- name: Checkout the repo
11+
uses: actions/checkout@v5
12+
13+
- name: Cache node modules
14+
uses: actions/cache@v4
15+
with:
16+
path: ~/.npm
17+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
18+
restore-keys: |
19+
${{ runner.os }}-node-
20+
21+
- name: Setup node
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: 22
25+
26+
- name: Install dependencies
27+
run: npm ci
28+
29+
- name: Create temp serviceAccount.json
30+
run: echo "{}" > serviceAccount.json

0 commit comments

Comments
 (0)