Skip to content

Commit b237b18

Browse files
authored
chore: upgrade to 1.18.17 (#97)
* v1.18.17 works with anchor 0.30.1? * updated setup to cache based on nodejs version * test projects with 0.30.1 * added pnpm files, renamed yarn run ts-mocha to pnpm ts-mocha
1 parent 832d4f1 commit b237b18

File tree

33 files changed

+1883
-42
lines changed

33 files changed

+1883
-42
lines changed

.github/.ghaignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,8 @@ compression/cutils/anchor
3333
compression/cnft-vault/anchor
3434
# builds but need to test on localhost
3535
compression/cnft-burn/anchor
36+
37+
# not building due to > spl 2.0 dependency issue
38+
tokens/token-2022/group/anchor
39+
tokens/token-2022/nft-meta-data-pointer/anchor-example/anchor
40+
tokens/escrow/anchor

.github/workflows/anchor.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
strategy:
2020
matrix:
2121
node-version: [20.x]
22-
solana-version: [1.18.8, stable]
22+
solana-version: [1.18.17, stable]
2323
anchor-version: [0.30.1]
2424
steps:
2525
- uses: actions/checkout@v4
@@ -35,8 +35,8 @@ jobs:
3535
- added|modified: '**/workflows/anchor.yml'
3636
3737
- name: Setup Anchor
38-
if: steps.changes.outputs.anchor == 'true' || steps.changes.outputs.anchor_action == 'true' || github.event_name == 'schedule'
39-
uses: heyAyushh/setup-anchor@v3.10
38+
if: steps.changes.outputs.anchor == 'true' || steps.changes.outputs.anchor_action == 'true' || github.event_name == 'schedule' || github.event_name == 'push'
39+
uses: heyAyushh/setup-anchor@v3.12
4040
with:
4141
anchor-version: ${{ matrix.anchor-version }}
4242
solana-cli-version: ${{ matrix.solana-version }}
@@ -96,7 +96,7 @@ jobs:
9696
shell: bash
9797
# Skip Building all Programs if it's a PR to main branch
9898
- name: Build All Anchor programs
99-
if: github.event_name == 'schedule' || steps.changes.outputs.anchor_action == 'true'
99+
if: github.event_name == 'schedule' || github.event_name == 'push' || steps.changes.outputs.anchor_action == 'true'
100100
run: |
101101
# Find all anchor projects and remove ignored projects
102102
declare -a ProjectDirs=($(find . -type d -name 'anchor' | sed 's|^\./||'| grep -v -f <(grep . .github/.ghaignore | grep -v '^$')))
@@ -137,8 +137,8 @@ jobs:
137137
strategy:
138138
matrix:
139139
node-version: [20.x]
140-
solana-version: [1.18.8, stable]
141-
anchor-version: [0.30.0]
140+
solana-version: [1.18.17, stable]
141+
anchor-version: [0.30.1]
142142
steps:
143143
- uses: actions/checkout@v4
144144
- uses: dorny/paths-filter@v3
@@ -153,8 +153,8 @@ jobs:
153153
- added|modified: '**/workflows/anchor.yml'
154154
# Skip Installing and Displaying versions if theres no change in anchor programs or anchor action workflow file or isn't a schedule event
155155
- name: Setup Anchor
156-
if: steps.changes.outputs.anchor == 'true' || steps.changes.outputs.anchor_action == 'true' || github.event_name == 'schedule'
157-
uses: heyAyushh/setup-anchor@v3.10
156+
if: steps.changes.outputs.anchor == 'true' || steps.changes.outputs.anchor_action == 'true' || github.event_name == 'schedule' || github.event_name == 'push'
157+
uses: heyAyushh/setup-anchor@v3.12
158158
with:
159159
anchor-version: ${{ matrix.anchor-version }}
160160
solana-cli-version: ${{ matrix.solana-version }}
@@ -180,8 +180,7 @@ jobs:
180180
Testing $projectDir
181181
********"
182182
cd $projectDir
183-
pnpm install --frozen-lockfile
184-
if anchor test; then
183+
if pnpm install --frozen-lockfile && anchor test; then
185184
echo "Tests succeeded for $projectDir."
186185
rm -rf target node_modules
187186
else

basics/counter/seahorse/Anchor.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ cluster = "localnet"
1212
wallet = "~/.config/solana/id.json"
1313

1414
[scripts]
15-
test = "yarn run ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"
15+
test = "pnpm ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"

basics/favorites/anchor/Anchor.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ cluster = "Localnet"
1515
wallet = "~/.config/solana/id.json"
1616

1717
[scripts]
18-
test = "yarn run ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"
18+
test = "pnpm ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"

basics/hello-solana/seahorse/hello_solana/Anchor.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ cluster = "localnet"
1111
wallet = "/home/thefunnyintrovert/.config/solana/id.json"
1212

1313
[scripts]
14-
test = "yarn run ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"
14+
test = "pnpm ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"

basics/transfer-sol/seahorse/Anchor.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ cluster = "Localnet"
1212
wallet = "/Users/devenv/.config/solana/id.json"
1313

1414
[scripts]
15-
test = "yarn run ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"
15+
test = "pnpm ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"

compression/cnft-burn/anchor/Anchor.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ cluster = "Devnet"
1515
wallet = "~/.config/solana/id.json"
1616

1717
[scripts]
18-
test = "yarn run ts-mocha -p ./tsconfig.json -t 1000000 tests/cnft-burn.ts"
18+
test = "pnpm ts-mocha -p ./tsconfig.json -t 1000000 tests/cnft-burn.ts"

compression/cnft-vault/anchor/Anchor.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ cluster = "Devnet"
1212
wallet = "~/.config/solana/id.json"
1313

1414
[scripts]
15-
test = "yarn run ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"
15+
test = "pnpm ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"

compression/cutils/anchor/Anchor.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ cluster = "devnet"
1212
wallet = "~/.config/solana/test.json"
1313

1414
[scripts]
15-
test = "yarn run ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"
15+
test = "pnpm ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"

oracles/pyth/anchor/Anchor.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ cluster = "Localnet"
1212
wallet = "~/.config/solana/id.json"
1313

1414
[scripts]
15-
test = "yarn run ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"
15+
test = "pnpm ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"
1616

1717
[test.validator]
1818
url = "https://api.mainnet-beta.solana.com"

oracles/pyth/seahorse/Anchor.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ cluster = "Localnet"
1212
wallet = "~/.config/solana/id.json"
1313

1414
[scripts]
15-
test = "yarn run ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"
15+
test = "pnpm ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"
1616

1717
[test.validator]
1818
url = "https://api.mainnet-beta.solana.com"

tokens/escrow/anchor/Anchor.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ cluster = "Localnet"
1515
wallet = "~/.config/solana/id.json"
1616

1717
[scripts]
18-
test = "yarn run ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"
18+
test = "pnpm ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"

tokens/nft-minter/native/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"scripts": {
3-
"test": "yarn run ts-mocha -p ./tsconfig.json -t 1000000 ./tests/test.ts"
3+
"test": "pnpm ts-mocha -p ./tsconfig.json -t 1000000 ./tests/test.ts"
44
},
55
"dependencies": {
66
"@metaplex-foundation/mpl-token-metadata": "^2.5.2",

tokens/nft-operations/anchor/Anchor.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ cluster = "localnet"
1818
wallet = "~/.config/solana/id.json"
1919

2020
[scripts]
21-
test = "yarn run ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"
21+
test = "pnpm ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"
2222

2323
[test.validator]
2424
url = "https://api.mainnet-beta.solana.com"

0 commit comments

Comments
 (0)