Skip to content

Refactor/strict reserve swapping #94

Refactor/strict reserve swapping

Refactor/strict reserve swapping #94

Workflow file for this run

name: Test and Build Anchor
on:
pull_request:
push:
branches: ['main']
jobs:
test-and-build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'npm'
- name: Install dependencies
run: npm ci
- uses: jsonDoge/setup-anchor@v4
with:
anchor-version: '0.30.1'
node-version: '22.11.0'
solana-cli-version: '2.0.15'
- name: Install Circom dependencies
run: |
sudo apt-get update
sudo apt-get install --yes \
build-essential \
libgmp-dev \
libsodium-dev \
nasm \
nlohmann-json3-dev
- name: Download Circom Binary v2.1.8
run: |
wget -qO /home/runner/work/circom https://github.com/iden3/circom/releases/download/v2.1.8/circom-linux-amd64
chmod +x /home/runner/work/circom
sudo mv /home/runner/work/circom /bin/circom
- name: Generate new keypair
run: solana-keygen new --no-bip39-passphrase
- name: Set solana target cluster to local
run: solana config set --url http://localhost:8899
- name: Check solana config
run: solana config get
- name: Cloning snarkjs and groth16-solana
run: git submodule update --init --recursive
- run: npm run anchor build
shell: bash
- run: npm run anchor test
shell: bash