From 31f0cee4b21c49cfa441293757185182f93216ca Mon Sep 17 00:00:00 2001 From: dafuga Date: Thu, 3 Oct 2024 11:04:52 -0700 Subject: [PATCH] chore: added svelte-check to gh ci --- .github/workflows/check.yml | 13 ++++++++++++- .../(explorer)/contract/[contract]/+layout.svelte | 2 +- .../(explorer)/contract/[contract]/+page.svelte | 2 +- .../(explorer)/contract/[contract]/abi/+page.svelte | 2 +- .../contract/[contract]/actions/+page.svelte | 2 +- .../actions/[action]/[[data]]/+page.svelte | 2 +- .../contract/[contract]/structs/+page.svelte | 2 +- .../contract/[contract]/tables/+page.svelte | 2 +- .../tables/[table]/[[scope]]/+page.svelte | 2 +- 9 files changed, 20 insertions(+), 9 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index c2e2a6115..98503e388 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -23,7 +23,7 @@ jobs: fetch-depth: 1 - uses: oven-sh/setup-bun@v2 - run: bun install - - run: bun lint + - run: bun run lint types: runs-on: ubuntu-latest steps: @@ -35,3 +35,14 @@ jobs: - run: bun install - run: bun run build-paraglide - run: bunx tsc --noemit + + sveltekit-check: + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + with: + fetch-depth: 1 + - uses: oven-sh/setup-bun@v2 + - run: bun install + - run: bun run check diff --git a/src/routes/[network]/(explorer)/contract/[contract]/+layout.svelte b/src/routes/[network]/(explorer)/contract/[contract]/+layout.svelte index 34d75b9a4..fdc5c1b81 100644 --- a/src/routes/[network]/(explorer)/contract/[contract]/+layout.svelte +++ b/src/routes/[network]/(explorer)/contract/[contract]/+layout.svelte @@ -11,7 +11,7 @@ 'contract', new Contract({ abi: data.abi, - account: data.contract, + account: String(data.contract), client: data.network.client }) ); diff --git a/src/routes/[network]/(explorer)/contract/[contract]/+page.svelte b/src/routes/[network]/(explorer)/contract/[contract]/+page.svelte index dd04fa8de..5e3eefbe0 100644 --- a/src/routes/[network]/(explorer)/contract/[contract]/+page.svelte +++ b/src/routes/[network]/(explorer)/contract/[contract]/+page.svelte @@ -10,7 +10,7 @@ diff --git a/src/routes/[network]/(explorer)/contract/[contract]/actions/+page.svelte b/src/routes/[network]/(explorer)/contract/[contract]/actions/+page.svelte index c20468988..0d6a239a9 100644 --- a/src/routes/[network]/(explorer)/contract/[contract]/actions/+page.svelte +++ b/src/routes/[network]/(explorer)/contract/[contract]/actions/+page.svelte @@ -11,7 +11,7 @@ title={m.contract_actions_page_title()} subtitle={m.contract_actions_page_description({ actions: data.abi.actions.length, - contract: data.contract, + contract: String(data.contract), network: data.network.chain.name })} /> diff --git a/src/routes/[network]/(explorer)/contract/[contract]/actions/[action]/[[data]]/+page.svelte b/src/routes/[network]/(explorer)/contract/[contract]/actions/[action]/[[data]]/+page.svelte index 741c9af68..f3b22a1b7 100644 --- a/src/routes/[network]/(explorer)/contract/[contract]/actions/[action]/[[data]]/+page.svelte +++ b/src/routes/[network]/(explorer)/contract/[contract]/actions/[action]/[[data]]/+page.svelte @@ -129,7 +129,7 @@ })} subtitle={m.contract_action_view_description({ action: data.action.name, - contract: data.contract, + contract: String(data.contract), network: data.network.chain.name })} /> diff --git a/src/routes/[network]/(explorer)/contract/[contract]/structs/+page.svelte b/src/routes/[network]/(explorer)/contract/[contract]/structs/+page.svelte index 935a1aa3a..d9a7820e7 100644 --- a/src/routes/[network]/(explorer)/contract/[contract]/structs/+page.svelte +++ b/src/routes/[network]/(explorer)/contract/[contract]/structs/+page.svelte @@ -11,7 +11,7 @@ title={m.contract_struct_page_title()} subtitle={m.contract_struct_page_description({ structs: data.abi.structs.length, - contract: data.contract, + contract: String(data.contract), network: data.network.chain.name })} /> diff --git a/src/routes/[network]/(explorer)/contract/[contract]/tables/+page.svelte b/src/routes/[network]/(explorer)/contract/[contract]/tables/+page.svelte index c43e0c4db..5cf9153b4 100644 --- a/src/routes/[network]/(explorer)/contract/[contract]/tables/+page.svelte +++ b/src/routes/[network]/(explorer)/contract/[contract]/tables/+page.svelte @@ -11,7 +11,7 @@ title={m.contract_tables_page_title()} subtitle={m.contract_tables_page_description({ tables: data.abi.tables.length, - contract: data.contract, + contract: String(data.contract), network: data.network.chain.name })} /> diff --git a/src/routes/[network]/(explorer)/contract/[contract]/tables/[table]/[[scope]]/+page.svelte b/src/routes/[network]/(explorer)/contract/[contract]/tables/[table]/[[scope]]/+page.svelte index feb04a43a..4f5f61962 100644 --- a/src/routes/[network]/(explorer)/contract/[contract]/tables/[table]/[[scope]]/+page.svelte +++ b/src/routes/[network]/(explorer)/contract/[contract]/tables/[table]/[[scope]]/+page.svelte @@ -12,7 +12,7 @@ table: data.table })} subtitle={m.contract_tables_view_description({ - contract: data.contract, + contract: String(data.contract), network: data.network.chain.name, table: data.table })}