From 7f656cde637846b94d542318cc551c654df5acf1 Mon Sep 17 00:00:00 2001 From: Tom Meagher Date: Fri, 5 Jan 2024 15:28:29 -0500 Subject: [PATCH] ci: add wagmi typechecking --- .github/workflows/verify.yml | 44 +++++++++++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index d9f6d2dc16d..dd47d38cd98 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -183,4 +183,46 @@ jobs: - name: Run test vectors shell: bash - run: bun run vectors \ No newline at end of file + run: bun run vectors + + wagmi: + name: Wagmi Types + runs-on: ubuntu-latest + strategy: + matrix: + typescript-version: ['5.0.4', '5.1.6', '5.2.2', 'latest'] + + steps: + - name: Clone repository + uses: actions/checkout@v4 + + - name: Install dependencies + uses: ./.github/actions/install-dependencies + + - name: Build and link viem + run: bun run build && pnpm link --global + + - uses: pnpm/action-setup@v2 + - uses: actions/setup-node@v4 + with: + cache: pnpm + node-version: 20 + - run: gh repo clone wevm/wagmi + - name: Set up wagmi + run: | + pnpm install + pnpm link --global viem + pnpm add -D -w typescript@${{ matrix.typescript-version }} + # pnpm preconstruct + working-directory: ./wagmi + + - name: Check types + run: pnpm typecheck + working-directory: ./wagmi + + - name: Check build + run: pnpm build + working-directory: ./wagmi + + +