Skip to content

Add Anchor example programs #104

Add Anchor example programs

Add Anchor example programs #104

Workflow file for this run

name: Rust
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
SOLANA_CLI_VERSION: "2.3.11"
RUST_TOOLCHAIN: "1.90.0"
jobs:
test-rust:
name: ${{ matrix.package }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
package:
- escrow
- fundraiser
- light-token-minter
- swap_example
steps:
- uses: actions/checkout@v4
- name: Setup environment
uses: ./.github/actions/setup
with:
example: programs/anchor
solana-cli-version: ${{ env.SOLANA_CLI_VERSION }}
rust-toolchain: ${{ env.RUST_TOOLCHAIN }}
- name: Test
working-directory: programs/anchor
run: cargo test-sbf -p ${{ matrix.package }}