Skip to content

Commit

Permalink
solana: hello npm
Browse files Browse the repository at this point in the history
  • Loading branch information
a5-pickle committed Feb 22, 2024
1 parent d0ab91e commit b16f21c
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5,125 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/solana.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,6 @@ jobs:
- name: Set default Rust toolchain
run: rustup default stable
working-directory: ./solana
- name: yarn
run: yarn
working-directory: ./solana
- name: anchor test --arch sbf
run: make anchor-test
working-directory: ./solana
1 change: 0 additions & 1 deletion solana/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ target
**/*.rs.bk
node_modules
test-ledger
.yarn
3 changes: 0 additions & 3 deletions solana/Anchor.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,7 @@ address = "worm2ZoG2kUd4vFXhvjh93UUH596ayRfgQ2MgjNMTth"
program = "programs/example-native-token-transfers/tests/fixtures/mainnet_core_bridge.so"

[test.validator]
bind_address = "0.0.0.0"
url = "https://api.mainnet-beta.solana.com"
ledger = ".anchor/test-ledger"
rpc_port = 8899
ticks_per_slot = 16

[[test.validator.account]]
Expand Down
10 changes: 9 additions & 1 deletion solana/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,13 @@ target/idl/example_native_token_transfers.json:
_anchor-build:
@anchor build

anchor-test: build target/idl/example_native_token_transfers.json
anchor-test: node_modules build target/idl/example_native_token_transfers.json
anchor test --skip-build

node_modules:
npm ci

.PHONY: clean
clean:
anchor clean
rm -rf .anchor node_modules
Loading

0 comments on commit b16f21c

Please sign in to comment.