Skip to content

fatcat: cancel unstake (#424) #168

fatcat: cancel unstake (#424)

fatcat: cancel unstake (#424) #168

name: Run anchor test
on:
push:
branches:
- main
paths:
- "anchor/**"
- ".github/workflows/**"
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: metadaoproject/[email protected]
with:
anchor-version: "0.30.1"
solana-cli-version: "1.18.23"
node-version: "20.18.0"
- name: Generate new keygen
run: solana-keygen new --no-bip39-passphrase --force
- name: Use localnet
run: solana config set --url l
- uses: pnpm/action-setup@v3
name: Install pnpm
with:
version: 9.15.4
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: Build and run tests
run: pnpm run anchor-test