Skip to content

Commit

Permalink
Debugging for package.json license error
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemaccana committed May 9, 2024
1 parent 1c44a92 commit e87a4a0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,19 @@ jobs:
anchor init project
cd project
echo "----------------------------------------"
echo "Fixing package.json..."
jq '.LICENSE = "UNLICENSED"' package.json > fixed-package.json
mv fixed-package.json package.json
cat package.json
echo "----------------------------------------"
echo "Fixing solana-program crate not using semver issue..."
sed -i 's/ctx/_context/' programs/project/src/lib.rs
cargo add solana-program@"=1.18.5"
echo "----------------------------------------"
echo "Installing packages..."
npm i
echo "----------------------------------------"
echo "Running 'anchor test'..."
Expand Down

0 comments on commit e87a4a0

Please sign in to comment.