From 33ced024a6420fa60eeb05c6e1ae19a429dee151 Mon Sep 17 00:00:00 2001 From: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com> Date: Sun, 25 Aug 2024 19:02:22 +0200 Subject: [PATCH] See if Cloudflare app does it all (#49) --- .github/workflows/build.yml | 18 ++++++++++++++++++ .github/workflows/{ci.yml => lint.yml} | 8 ++------ src/Content.tsx | 3 +++ 3 files changed, 23 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/build.yml rename .github/workflows/{ci.yml => lint.yml} (65%) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..7e38e99 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,18 @@ +name: Build + +on: + pull_request: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 + - uses: actions/setup-node@v4 + with: + node-version: 21 + cache: 'pnpm' + - run: pnpm install + - run: pnpm build diff --git a/.github/workflows/ci.yml b/.github/workflows/lint.yml similarity index 65% rename from .github/workflows/ci.yml rename to .github/workflows/lint.yml index 3f1a0ac..a1be7cf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/lint.yml @@ -1,8 +1,6 @@ -name: Build and Lint +name: Lint on: - push: - branches: [main] pull_request: branches: [main] @@ -15,8 +13,6 @@ jobs: - uses: actions/setup-node@v4 with: node-version: 21 - # cache: 'pnpm' - # cache-dependency-path: 'pnpm-lock.yaml' + cache: 'pnpm' - run: pnpm install - - run: pnpm run build - run: pnpm run lint diff --git a/src/Content.tsx b/src/Content.tsx index 817a8c8..7d2a800 100644 --- a/src/Content.tsx +++ b/src/Content.tsx @@ -22,9 +22,12 @@ const pages = [ export const Content = () => { const { lightClientLoaded, isLight } = useNetwork() + useEffect(() => { isLight && lightClientLoaded && toast.success('Light client: Synced') }, [isLight, lightClientLoaded]) + + console.log('==> Delegit FTW') return ( <>