Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support token_2022 program #5

Merged
merged 14 commits into from
Sep 6, 2024
24 changes: 12 additions & 12 deletions .github/workflows/ci-pr-main-program.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ on:
pull_request:
branches:
- main
andrewsource147 marked this conversation as resolved.
Show resolved Hide resolved
- staging

env:
SOLANA_CLI_VERSION: 1.16.25
SOLANA_CLI_VERSION: 1.18.21
NODE_VERSION: 18.14.2
ANCHOR_CLI_VERSION: 0.28.0
ANCHOR_CLI_VERSION: 0.29.0

jobs:
program_changed_files:
Expand All @@ -32,12 +34,11 @@ jobs:
steps:
- uses: actions/checkout@v2
# Install rust + toolchain
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: clippy
- run: rustup toolchain install stable --component clippy
# Cache rust, cargo
- uses: Swatinem/rust-cache@v1
- uses: Swatinem/rust-cache@v2
with:
prefix-key: "v1"
- run: cargo test --package locker
shell: bash

Expand All @@ -51,12 +52,11 @@ jobs:
- uses: ./.github/actions/setup-dep
- uses: ./.github/actions/setup-anchor
# Install rust + toolchain
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: clippy
- run: rustup toolchain install stable --component clippy
# Cache rust, cargo
- uses: Swatinem/rust-cache@v1
- uses: Swatinem/rust-cache@v2
with:
prefix-key: "v1"
# Cache node_modules
- uses: actions/cache@v2
id: cache-node-modules
Expand Down
6 changes: 5 additions & 1 deletion Anchor.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,8 @@ cluster = "Localnet"
wallet = "keys/localnet/admin-bossj3JvwiNK7pvjr149DqdtJxf2gdygbcmEPTkb2F1.json"

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

andrewsource147 marked this conversation as resolved.
Show resolved Hide resolved
[[test.genesis]]
address = "EBZDYx7599krFc4m2govwBdZcicr4GgepqC78m71nsHS"
program = "tests/external_program/transfer_hook_counter.so"
Loading
Loading