Skip to content

Adding anchor project structure + config base ix #1

Adding anchor project structure + config base ix

Adding anchor project structure + config base ix #1

Workflow file for this run

name: Anchor Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
anchor-test:
runs-on: ubuntu-latest
timeout-minutes: 20
# from https://github.com/ochaloup/projectserum-build-docker
container: docker.io/ochaloup/projectserum-build:v0.29.0_sol1.16.17_avm
steps:
- name: /root/.cargo to PATH
run: |
echo '/root/.cargo/bin/' >> $GITHUB_PATH
echo '/root/.avm/bin' >> $GITHUB_PATH
ln -s /root/.avm $HOME/
mkdir -p $HOME/.config
ln -s /root/.config/solana $HOME/.config/
- name: Info on AVM
run: |
avm list
avm use 0.29.0
- name: Checkout project
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Set nightly toolchain
run: rustup default nightly
- name: List rustup toolchains
run: rustup toolchain list
- name: Check solana config
run: solana config get
- name: Running tests for project
run: |
pnpm install
pnpm test