Skip to content

Commit c03d16f

Browse files
committed
copilot-setup-steps
1 parent c91b1aa commit c03d16f

File tree

3 files changed

+67
-855
lines changed

3 files changed

+67
-855
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Copilot Setup Steps
2+
3+
env:
4+
NODE_VERSION: 22.x
5+
VITE_VALIDATOR: vl.ripple.com
6+
VITE_RIPPLED_WS_PORT: 51233
7+
VITE_RIPPLED_HOST: fake.rippled.example.com
8+
VITE_MAINNET_LINK: mainnet.example.com
9+
VITE_TESTNET_LINK: testnet.example.com
10+
VITE_CUSTOMNETWORK_LINK: custom.example.com
11+
VITE_DATA_URL: https://data.xrpl.org/v1/network
12+
13+
on:
14+
workflow_dispatch:
15+
push:
16+
branches: [main]
17+
pull_request:
18+
branches: [main]
19+
20+
jobs:
21+
copilot-setup:
22+
runs-on: ubuntu-latest
23+
24+
steps:
25+
- uses: actions/checkout@v4
26+
- name: Use Node.js ${{ env.NODE_VERSION }}
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: ${{ env.NODE_VERSION }}
30+
31+
- name: Cache node modules
32+
id: cache-nodemodules
33+
uses: actions/cache@v4
34+
env:
35+
cache-name: cache-node-modules
36+
with:
37+
# caching node_modules
38+
path: node_modules
39+
key: ${{ env.NODE_VERSION }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
40+
restore-keys: |
41+
${{ env.NODE_VERSION }}-build-${{ env.cache-name }}-
42+
${{ env.NODE_VERSION }}-build-
43+
44+
- name: Install Dependencies
45+
if: steps.cache-nodemodules.outputs.cache-hit != 'true'
46+
run: npm ci

0 commit comments

Comments
 (0)