Skip to content

Commit

Permalink
add anchor test to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
makarychev committed Mar 26, 2024
1 parent 2fd8688 commit 2fb6c0c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,7 @@
- name: Build
run: anchor build

- name: Test
run: anchor test
# TODO: fix keypair issue (generate and detect by anchor)
- name: Anchor Tests
run: |
./ci/build-and-test.sh
13 changes: 13 additions & 0 deletions ci/build-and-test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash

set -e
cd "$(dirname "$0")/.."

set -x
solana config set --url localhost

solana-keygen new

anchor test

exit 0

0 comments on commit 2fb6c0c

Please sign in to comment.