-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from mikemaccana/anchor-030
Anchor 0.30 and Solana 1.18.5 update
- Loading branch information
Showing
11 changed files
with
2,881 additions
and
1,512 deletions.
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,56 @@ | ||
# From https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs#using-the-nodejs-starter-workflow | ||
name: Node.js CI | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
# See https://github.com/metaDAOproject/setup-anchor for docs | ||
- uses: metadaoproject/[email protected] | ||
with: | ||
anchor-version: "latest" | ||
# Install Solana CLI (beta, required to fix 'ahash' issue) | ||
solana-cli-version: "1.18.5" | ||
node-version: "20.12.2" | ||
|
||
# git will keep outputting: | ||
# hint: Using 'master' as the name for the initial branch. This default branch name | ||
# hint: is subject to change. | ||
# Unless we set this. | ||
- name: Set a default branch name for git | ||
run: | | ||
git config --global init.defaultBranch main | ||
- name: Print versions and debugging info | ||
run: | | ||
echo Linux version: | ||
lsb_release -a | ||
echo Solana version: | ||
solana -V | ||
echo Anchor version: | ||
anchor -V | ||
echo build-sbf version: | ||
cargo build-sbf --version | ||
echo Path: | ||
echo $PATH | tr ':' '\n' | sort | ||
# Fixes: | ||
# Error: Unable to read keypair file | ||
# during 'anchor test' | ||
- name: Make a default keypair | ||
run: | | ||
solana-keygen new --no-bip39-passphrase | ||
- name: Test the Movie Review project builds and tests pass | ||
run: | | ||
anchor test 2>&1 | tee -a build.log | ||
cat build.log | ||
cat build.log | grep -qEv 'error|warn' |
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
Oops, something went wrong.