Skip to content

Commit

Permalink
ci: add tsc (#1369)
Browse files Browse the repository at this point in the history
* ci: add tsc

* chore: ignore import errors
  • Loading branch information
dominik-stumpf authored Jul 10, 2024
1 parent 4bfb9a2 commit a65875c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/code-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches: ["*"]

jobs:
quality:
quality-assurance:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -14,3 +14,16 @@ jobs:
uses: biomejs/setup-biome@v2
- name: Run Biome
run: biome ci --reporter=github .
type:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install dependencies
run: npm install
- name: Run TypeScript compiler
run: npm run type-check
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
useClipboard,
useDisclosure,
} from "@chakra-ui/react"
// @ts-ignore: fetched from prive sources, prevents successful build
import type { RawPrivateKey, Waas } from "@coinbase/waas-sdk-web"
// eslint-disable-next-line import/no-extraneous-dependencies
import { Check, Copy, Wallet } from "@phosphor-icons/react"
Expand All @@ -35,10 +36,12 @@ import { getDriveFileAppProperties, listWalletsOnDrive } from "../utils/googleDr
const WAAS_DEPRECATION_ERROR_MESSAGE =
"Looks like you don't have an existing Google-based Guild account. We recommend signing in with the Smart Wallet option"

// @ts-ignore: fetched from prive sources, prevents successful build
let cwaasModule: typeof import("@coinbase/waas-sdk-web")
const cwaasImport = async () => {
if (cwaasModule) return cwaasModule
// eslint-disable-next-line import/no-extraneous-dependencies
// @ts-ignore: fetched from prive sources, prevents successful build
const mod = await import("@coinbase/waas-sdk-web")
cwaasModule = mod
return mod
Expand Down

0 comments on commit a65875c

Please sign in to comment.