Skip to content

Commit

Permalink
test adding back pnpm-lock.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
ZYJLiu committed May 8, 2024
1 parent 30b94a7 commit cf3a9aa
Show file tree
Hide file tree
Showing 9 changed files with 6,806 additions and 44 deletions.
44 changes: 22 additions & 22 deletions .github/workflows/anchor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Anchor

on:
schedule:
- cron: '0 0 * * *'
- cron: "0 0 * * *"
push:
branches:
- main
Expand Down Expand Up @@ -45,16 +45,16 @@ jobs:
"basics/account-data/anchor"
"basics/checking-accounts/anchor"
"basics/close-account/anchor"
"basics/counter/anchor"
"basics/create-account/anchor"
"basics/hello-solana/anchor"
"basics/pda-rent-payer/anchor"
"basics/processing-instructions/anchor"
"basics/program-derived-addresses/anchor"
"basics/realloc/anchor"
"basics/rent/anchor"
"basics/repository-layout/anchor"
"basics/transfer-sol/anchor"
# "basics/counter/anchor"
# "basics/create-account/anchor"
# "basics/hello-solana/anchor"
# "basics/pda-rent-payer/anchor"
# "basics/processing-instructions/anchor"
# "basics/program-derived-addresses/anchor"
# "basics/realloc/anchor"
# "basics/rent/anchor"
# "basics/repository-layout/anchor"
# "basics/transfer-sol/anchor"
)
for projectDir in "${ProjectDirs[@]}"; do
echo "
Expand Down Expand Up @@ -108,24 +108,24 @@ jobs:
"basics/account-data/anchor"
"basics/checking-accounts/anchor"
"basics/close-account/anchor"
"basics/counter/anchor"
"basics/create-account/anchor"
"basics/hello-solana/anchor"
"basics/pda-rent-payer/anchor"
"basics/processing-instructions/anchor"
"basics/program-derived-addresses/anchor"
"basics/realloc/anchor"
"basics/rent/anchor"
"basics/repository-layout/anchor"
"basics/transfer-sol/anchor"
# "basics/counter/anchor"
# "basics/create-account/anchor"
# "basics/hello-solana/anchor"
# "basics/pda-rent-payer/anchor"
# "basics/processing-instructions/anchor"
# "basics/program-derived-addresses/anchor"
# "basics/realloc/anchor"
# "basics/rent/anchor"
# "basics/repository-layout/anchor"
# "basics/transfer-sol/anchor"
)
for projectDir in "${ProjectDirs[@]}"; do
echo "
********
Testing $projectDir
********"
cd $projectDir
pnpm install
pnpm install --frozen-lockfile
if anchor test; then
echo "Tests succeeded for $projectDir."
else
Expand Down
42 changes: 21 additions & 21 deletions .github/workflows/solana-native.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Native

on:
schedule:
- cron: '0 0 * * *'
- cron: "0 0 * * *"
push:
branches:
- main
Expand Down Expand Up @@ -39,16 +39,16 @@ jobs:
"basics/account-data/native/program"
"basics/checking-accounts/native/program"
"basics/close-account/native/program"
"basics/counter/native/program"
"basics/create-account/native/program"
"basics/hello-solana/native/program"
"basics/pda-rent-payer/native/program"
"basics/processing-instructions/native/program"
"basics/program-derived-addresses/native/program"
"basics/realloc/native/program"
"basics/rent/native/program"
"basics/repository-layout/native/program"
"basics/transfer-sol/native/program"
# "basics/counter/native/program"
# "basics/create-account/native/program"
# "basics/hello-solana/native/program"
# "basics/pda-rent-payer/native/program"
# "basics/processing-instructions/native/program"
# "basics/program-derived-addresses/native/program"
# "basics/realloc/native/program"
# "basics/rent/native/program"
# "basics/repository-layout/native/program"
# "basics/transfer-sol/native/program"
)
for projectDir in "${ProjectDirs[@]}"; do
echo "
Expand Down Expand Up @@ -103,23 +103,23 @@ jobs:
"basics/account-data/native/"
"basics/checking-accounts/native/"
"basics/close-account/native/"
"basics/counter/native/"
"basics/create-account/native/"
"basics/hello-solana/native/"
"basics/pda-rent-payer/native/"
"basics/processing-instructions/native/"
"basics/program-derived-addresses/native/"
"basics/rent/native/"
"basics/repository-layout/native/"
"basics/transfer-sol/native/"
# "basics/counter/native/"
# "basics/create-account/native/"
# "basics/hello-solana/native/"
# "basics/pda-rent-payer/native/"
# "basics/processing-instructions/native/"
# "basics/program-derived-addresses/native/"
# "basics/rent/native/"
# "basics/repository-layout/native/"
# "basics/transfer-sol/native/"
)
for projectDir in "${ProjectDirs[@]}"; do
echo "
********
Testing $projectDir
********"
cd $projectDir
pnpm install
pnpm install --frozen-lockfile
if (cargo build-sbf --manifest-path=./program/Cargo.toml --sbf-out-dir=./tests/fixtures && pnpm test); then
echo "Tests succeeded for $projectDir."
else
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ test-ledger/
**/*/node_modules
**/*/package-lock.json
**/*/Cargo.lock
**/*/pnpm-lock.yaml

**/*/.anchor
**/*/.DS_Store
Expand Down
Loading

0 comments on commit cf3a9aa

Please sign in to comment.