Skip to content

Commit e8662e6

Browse files
committed
feat: add WalletSkeletonLoader component for improved loading experience
feat: enhance sidebar navigation and add receive action button in wallet actions feat: implement ReceiveAction component and update wallet actions to include it feat: add WalletSkeletonLoader component for improved loading experience feat: enhance sidebar navigation and add receive action button in wallet actions feat: implement ReceiveAction component and update wallet actions to include it [TMP] remove workflows debug workflow add commit check test git merge-base wip test
1 parent 0df6936 commit e8662e6

File tree

17 files changed

+248
-477
lines changed

17 files changed

+248
-477
lines changed
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
# .github/actions/check-turbo-changes/action.yml
2+
name: Check Turbo Changes
3+
description: Check which packages are marked to build by Turbo
4+
5+
outputs:
6+
torus-wallet:
7+
description: "Whether torus-wallet changed"
8+
value: ${{ steps.changed.outputs.torus-wallet }}
9+
torus-page:
10+
description: "Whether torus-page changed"
11+
value: ${{ steps.changed.outputs.torus-page }}
12+
torus-allocator:
13+
description: "Whether torus-allocator changed"
14+
value: ${{ steps.changed.outputs.torus-allocator }}
15+
torus-cache:
16+
description: "Whether torus-cache changed"
17+
value: ${{ steps.changed.outputs.torus-cache }}
18+
torus-bridge:
19+
description: "Whether torus-bridge changed"
20+
value: ${{ steps.changed.outputs.torus-bridge }}
21+
torus-worker:
22+
description: "Whether torus-worker changed"
23+
value: ${{ steps.changed.outputs.torus-worker }}
24+
torus-governance:
25+
description: "Whether torus-governance changed"
26+
value: ${{ steps.changed.outputs.torus-governance }}
27+
28+
runs:
29+
using: "composite"
30+
steps:
31+
- uses: actions/checkout@v4
32+
with:
33+
fetch-depth: 0
34+
35+
- uses: pnpm/action-setup@v4
36+
name: Install pnpm
37+
with:
38+
run_install: false
39+
40+
- name: Install Node.js
41+
uses: actions/setup-node@v4
42+
with:
43+
node-version: 20
44+
cache: "pnpm"
45+
46+
- name: Install dependencies
47+
shell: bash
48+
run: pnpm install
49+
50+
- name: Get apps list
51+
shell: bash
52+
run: |
53+
ls -d apps/* | sed 's/apps\///' | jq -R -s -c 'split("\n")[:-1]' > packages_to_track.json
54+
echo "Found packages:"
55+
cat packages_to_track.json
56+
57+
- name: Get build json
58+
shell: bash
59+
run: |
60+
# Find the merge-base between current HEAD and the previous known state
61+
62+
if git rev-parse --quiet --verify ${{ github.event.before }}^{commit}; then
63+
BASE_COMMIT=$(git merge-base ${{ github.event.before }} HEAD)
64+
pnpm exec turbo run build --filter="...[${BASE_COMMIT}]" --dry-run=json 2>/dev/null > build.json
65+
else
66+
pnpm exec turbo run build --dry-run=json 2>/dev/null > build.json
67+
fi
68+
# pnpm exec turbo run build --filter="...[HEAD^1]" --dry-run=json 2>/dev/null > build.json
69+
70+
- name: Get changed packages
71+
shell: bash
72+
run: |
73+
cat build.json | jq -c '[.tasks[].package]' > package_list
74+
echo "Changed packages:"
75+
cat package_list
76+
77+
- name: Check changed packages
78+
id: changed
79+
shell: bash
80+
run: |
81+
CHANGED_PACKAGES=$(cat package_list)
82+
83+
while read -r package; do
84+
package=$(echo "$package" | tr -d '"')
85+
IS_CHANGED=$(echo $CHANGED_PACKAGES | jq -r "any(. == \"$package\")")
86+
echo "$package=$IS_CHANGED" >> $GITHUB_OUTPUT
87+
done < <(jq -c '.[]' packages_to_track.json)
88+
89+
- name: Debug outputs
90+
shell: bash
91+
run: |
92+
echo 'Changed packages status:'
93+
echo '${{ toJSON(steps.changed.outputs) }}' | jq '.'

.github/workflows/ci.yml

Lines changed: 0 additions & 56 deletions
This file was deleted.

.github/workflows/debug.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# .github/workflows/debug.yml
2+
name: Check Changes
3+
4+
on:
5+
push:
6+
pull_request:
7+
8+
jobs:
9+
check:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 0
15+
16+
- name: Check if before commit exists
17+
run: |
18+
if git rev-parse --quiet --verify ${{ github.event.before }}^{commit}; then
19+
echo "Before commit exists "
20+
else
21+
echo "Before commit does not exist"
22+
fi
23+
24+
- name: Check merge-base
25+
run: |
26+
if git merge-base ${{ github.event.before }} HEAD; then
27+
echo "Before commit exists"
28+
else
29+
echo "Before commit does not exist"
30+
fi
31+
32+
- uses: ./.github/actions/check-turbo-changes
33+
id: changes
34+
35+
# Simple conditional steps
36+
- name: Build torus-wallet
37+
if: steps.changes.outputs.torus-wallet == 'true'
38+
run: echo "Building torus-wallet..."
39+
40+
- name: Build torus-page
41+
if: steps.changes.outputs.torus-page == 'true'
42+
run: echo "Building torus-page..."
43+
44+
# Debug output
45+
- name: Show changes
46+
run: |
47+
# Print all outputs
48+
echo "All changes:"
49+
echo '${{ toJSON(steps.changes.outputs) }}' | jq '.'

.github/workflows/torus-allocator.yml

Lines changed: 0 additions & 61 deletions
This file was deleted.

.github/workflows/torus-bridge.yml

Lines changed: 0 additions & 65 deletions
This file was deleted.

.github/workflows/torus-cache.yml

Lines changed: 0 additions & 62 deletions
This file was deleted.

0 commit comments

Comments
 (0)