File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Safe Chain
2+ on :
3+ push :
4+ branches :
5+ - main
6+ pull_request :
7+ branches :
8+ - main
9+ jobs :
10+ safe-chain :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - name : Checkout
14+ uses : actions/checkout@v3
15+
16+ - name : Install Node.js
17+ uses : actions/setup-node@v3
18+ with :
19+ node-version : 18
20+
21+ - uses : pnpm/action-setup@v2
22+ name : Install pnpm
23+ with :
24+ version : 8
25+ run_install : false
26+
27+ - name : Get pnpm store directory
28+ shell : bash
29+ run : |
30+ echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
31+
32+ - uses : actions/cache@v3
33+ name : Setup pnpm cache
34+ with :
35+ path : ${{ env.STORE_PATH }}
36+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
37+ restore-keys : |
38+ ${{ runner.os }}-pnpm-store-
39+
40+ - name : Install Aikido Safe Chain
41+ run : npm install -g @aikidosec/safe-chain
42+
43+ - name : Setup Aikido Safe Chain for CI
44+ run : safe-chain setup-ci
45+
46+ - name : Install dependencies with Safe Chain protection
47+ run : pnpm install
You can’t perform that action at this time.
0 commit comments