Skip to content

Commit

Permalink
test with action from metadaoproject
Browse files Browse the repository at this point in the history
  • Loading branch information
lumtis committed Jul 4, 2024
1 parent 3282e87 commit ccd2ec0
Showing 1 changed file with 8 additions and 39 deletions.
47 changes: 8 additions & 39 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,43 +9,12 @@ on:
- main

jobs:
build:
runs-on: ubuntu-latest

run-anchor-test:
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Install Solana CLI
run: |
sh -c "$(curl -sSfL https://release.solana.com/v1.18.15/install)"
echo "$HOME/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
- name: Install Anchor
run: |
cargo install --git https://github.com/coral-xyz/anchor --tag v0.30.0 anchor-cli --locked
- name: Generate Solana keypair
run: |
mkdir -p ~/.config/solana
solana-keygen new --outfile ~/.config/solana/id.json
- name: Setup Solana config
run: |
solana config set --url https://api.devnet.solana.com
solana config set --keypair ~/.config/solana/id.json
- name: Install yarn dependencies
run: yarn install

- name: Run Anchor build
run: anchor build

- name: Run Anchor tests
run: anchor test
- uses: actions/checkout@v3
- uses: metadaoproject/anchor-test@v2
with:
anchor-version: '0.30.1'
solana-cli-version: '1.18.15'
node-version: '16.20.2'

0 comments on commit ccd2ec0

Please sign in to comment.