This repository was archived by the owner on May 9, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +82
-1
lines changed Expand file tree Collapse file tree 3 files changed +82
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Test and Build Anchor
2
+
3
+ on :
4
+ pull_request :
5
+ push :
6
+ branches : ['main']
7
+
8
+ jobs :
9
+ test-and-build :
10
+ runs-on : ubuntu-latest
11
+
12
+ steps :
13
+ - name : Checkout
14
+ uses : actions/checkout@v4
15
+
16
+ - name : Install pnpm
17
+ uses : pnpm/action-setup@v4
18
+ with :
19
+ run_install : false
20
+
21
+ - name : Install Node.js
22
+ uses : actions/setup-node@v4
23
+ with :
24
+ node-version : 20
25
+ cache : ' pnpm'
26
+
27
+ - name : Install dependencies
28
+ run : pnpm install --frozen-lockfile
29
+
30
+ - uses : metadaoproject/setup-anchor@v2
31
+ with :
32
+ anchor-version : ' 0.30.1'
33
+ node-version : ' 20'
34
+ solana-cli-version : ' 1.18.9'
35
+
36
+ - name : Generate new keypair
37
+ run : solana-keygen new --no-bip39-passphrase
38
+
39
+ - name : Set solana target cluster to local
40
+ run : solana config set --url http://localhost:8899
41
+
42
+ - name : Check solana config
43
+ run : solana config get
44
+
45
+ - run : pnpm run anchor build
46
+ shell : bash
47
+
48
+ - run : pnpm run anchor test
49
+ shell : bash
Original file line number Diff line number Diff line change
1
+ name : Test and Build Web
2
+
3
+ on :
4
+ pull_request :
5
+ push :
6
+ branches : ['main']
7
+
8
+ jobs :
9
+ test-and-build :
10
+ runs-on : ubuntu-latest
11
+
12
+ steps :
13
+ - name : Checkout
14
+ uses : actions/checkout@v4
15
+
16
+ - name : Install pnpm
17
+ uses : pnpm/action-setup@v4
18
+ with :
19
+ run_install : false
20
+
21
+ - name : Install Node.js
22
+ uses : actions/setup-node@v4
23
+ with :
24
+ node-version : 20
25
+ cache : ' pnpm'
26
+
27
+ - name : Install dependencies
28
+ run : pnpm install --frozen-lockfile
29
+
30
+ - name : Build project
31
+ run : pnpm build
Original file line number Diff line number Diff line change 59
59
"anchor" : " 0.30.1" ,
60
60
"solana" : " 1.18.0"
61
61
}
62
- }
62
+ },
63
+ "packageManager" : " pnpm@9.7.0+sha512.dc09430156b427f5ecfc79888899e1c39d2d690f004be70e05230b72cb173d96839587545d09429b55ac3c429c801b4dc3c0e002f653830a420fa2dd4e3cf9cf"
63
64
}
You can’t perform that action at this time.
0 commit comments