Skip to content

Fix CI badge URL to point at correct repo #6

Fix CI badge URL to point at correct repo

Fix CI badge URL to point at correct repo #6

Workflow file for this run

name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
anchor:
name: Anchor Program Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Install Solana CLI
run: |
sh -c "$(curl -sSfL https://release.anza.xyz/v3.1.8/install)"
echo "$HOME/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
- name: Install system dependencies
run: sudo apt-get update && sudo apt-get install -y libudev-dev pkg-config
- name: Install Anchor CLI
run: cargo install --git https://github.com/coral-xyz/anchor --tag v0.32.1 anchor-cli
- name: Run Anchor tests
run: |
solana-keygen new --no-bip39-passphrase
npm install
anchor test
client:
name: Client Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- run: cd client && npm install && npm test && npm run build
server:
name: Server Auth Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cd server/tests-rs && cargo test