Fix of toncoin losses for gas on each tx in send_usd.fc (#56) #22
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Lazer Anchor contract test" | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
paths: | |
- lazer/solana-anchor/ | |
- .github/workflows/ci-lazer-anchor.yml | |
jobs: | |
lazer-anchor-example-test: | |
name: Lazer Anchor example contract test | |
runs-on: ubuntu-22.04 | |
defaults: | |
run: | |
working-directory: lazer/solana-anchor/ | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
cache-workspaces: "lazer/solana-anchor -> target" | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
- uses: pnpm/action-setup@v4 | |
name: Install pnpm | |
with: | |
version: 10 | |
run_install: | | |
recursive: false | |
cwd: lazer/solana-anchor/ | |
- name: Install Solana Cli | |
run: | | |
sh -c "$(curl -sSfL https://release.anza.xyz/v2.1.21/install)" | |
echo "$HOME/.local/share/solana/install/active_release/bin" >> "$GITHUB_PATH" | |
- name: Create Solana key | |
run: solana-keygen new --no-bip39-passphrase | |
- name: Install Anchor | |
run: cargo install --git https://github.com/coral-xyz/anchor --tag v0.31.1 --locked anchor-cli | |
- name: Run anchor tests | |
run: pnpm run test:anchor |