-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0e217e7
commit b4aa584
Showing
3 changed files
with
57 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
name: Solana_Build | ||
|
||
on: [push] | ||
|
||
jobs: | ||
Test: | ||
runs-on: [ubuntu-22.04] | ||
env: | ||
RUST_VERSION: 1.77.0 | ||
SOLANA_VERSION: 1.18.8 | ||
ANCHOR_VERSION: 0.29.0 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: ${{ env.RUST_VERSION }} | ||
override: true | ||
components: rustfmt, clippy | ||
|
||
- name: Install Solana | ||
uses: metadaoproject/[email protected] | ||
with: | ||
solana-cli-version: ${{ env.SOLANA_VERSION }} | ||
|
||
- name: Generate Key | ||
run: solana-keygen new --no-passphrase | ||
|
||
- name: Install Anchor | ||
run: cargo install --git https://github.com/coral-xyz/anchor --tag v${{ env.ANCHOR_VERSION }} anchor-cli --locked | ||
|
||
- name: Build | ||
run: anchor build | ||
|
||
- name: Install JS Dependencies | ||
run: yarn install | ||
|
||
- name: JS Tests | ||
run: anchor test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |