Skip to content

Commit

Permalink
Use local package for tests (#1192)
Browse files Browse the repository at this point in the history
* fix: use local package for tests

* fix: update package json and removed yarn.lock files

* fix: change test-apps gh action

* fix: update test-apps workflow
  • Loading branch information
fabiorigam authored Aug 23, 2024
1 parent 34a4e98 commit f2dc0fb
Show file tree
Hide file tree
Showing 6 changed files with 1,075 additions and 11,611 deletions.
31 changes: 10 additions & 21 deletions .github/workflows/test-apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,29 +26,18 @@ jobs:
run: |
# Absolute path to the 'apps' directory
apps_directory="$(pwd)/apps"
current_app_directory="$apps_directory/sdk-hardhat-integration"
# Iterate over each folder in /apps
for current_app_directory in "$apps_directory"/*; do
if [ -d "$current_app_directory" ]; then
# LOG
echo "Running yarn in $current_app_directory"

# Navigate to the directory using absolute path
cd "$current_app_directory"

# Check if the directory name is "sdk-nextjs-integration" and remove yarn.lock
if [ "$(basename "$current_app_directory")" = "sdk-nextjs-integration" ]; then
echo "Removing yarn.lock in $current_app_directory"
rm yarn.lock
fi
if [ -d "$current_app_directory" ]; then
# LOG
echo "Running yarn in $current_app_directory"

# Navigate to the directory using absolute path
cd "$current_app_directory"

# Install dependencies
yarn install

# Return to the original directory using absolute path
cd "../"
fi
done
# Install dependencies
yarn install
fi

- name: Test apps
run: |
Expand Down
Loading

1 comment on commit f2dc0fb

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test Coverage

Summary

Lines Statements Branches Functions
Coverage: 99%
99.1% (3665/3698) 96.78% (963/995) 99.18% (734/740)
Title Tests Skipped Failures Errors Time
core 542 0 💤 0 ❌ 0 🔥 1m 15s ⏱️
network 684 0 💤 0 ❌ 0 🔥 3m 53s ⏱️
errors 40 0 💤 0 ❌ 0 🔥 17.01s ⏱️

Please sign in to comment.