chore: add missing package name and remove lock files #13
Workflow file for this run
This file contains 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 Solana contract test" | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- lazer/** | |
pull_request: | |
paths: | |
- lazer/** | |
jobs: | |
lazer-solana-contract-test: | |
name: Lazer Solana contract test | |
runs-on: ubuntu-22.04 | |
defaults: | |
run: | |
working-directory: lazer/contracts/solana | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
toolchain: 1.81.0 | |
- name: install taplo | |
run: cargo install --locked [email protected] | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20.18.0 | |
- name: Install Solana Cli | |
run: | | |
sh -c "$(curl -sSfL https://release.anza.xyz/stable/install)" | |
echo "$HOME/.local/share/solana/install/active_release/bin" >> "$GITHUB_PATH" | |
- name: Set Solana Cli version | |
run: agave-install init 1.18.26 | |
- name: Create Solana key | |
run: solana-keygen new --no-bip39-passphrase | |
- name: Install Anchor | |
run: RUSTFLAGS= cargo install --git https://github.com/coral-xyz/anchor --tag v0.30.1 anchor-cli | |
- name: Install pnpm | |
run: npm install --global [email protected] | |
- name: Install test dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Run tests | |
run: pnpm run test |