From 3512cb078ff32766f6db58bf3e8d56ed4440119e Mon Sep 17 00:00:00 2001 From: Mauricio Poppe Date: Thu, 8 Oct 2026 21:06:34 -0400 Subject: [PATCH 1/3] fix(build): exclude tests from production tsc --- tsconfig.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index 20650ce..7d33ae5 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -23,6 +23,7 @@ "src/**/*" ], "exclude": [ - "src/stories/**/*" + "src/stories/**/*", + "src/**/*.test.ts" ] } From 9d5322bd41510f76013a115d09986d14a4439b41 Mon Sep 17 00:00:00 2001 From: Mauricio Poppe Date: Sat, 10 Oct 2026 16:46:41 -0400 Subject: [PATCH 2/3] ci: avoid browser download in tests --- .github/workflows/build-and-test.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 1d7ae4d..aa86622 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -13,6 +13,7 @@ on: jobs: build: runs-on: ubuntu-latest + timeout-minutes: 20 steps: - uses: actions/checkout@v2 @@ -32,6 +33,10 @@ jobs: test: runs-on: ubuntu-latest + timeout-minutes: 20 + env: + PUPPETEER_SKIP_DOWNLOAD: true + PUPPETEER_EXECUTABLE_PATH: /usr/bin/google-chrome steps: - uses: actions/checkout@v2 @@ -44,7 +49,7 @@ jobs: cache: npm - name: Install dependencies - run: npm ci + run: npm ci --ignore-scripts - name: Test run: npm run test @@ -73,4 +78,3 @@ jobs: uses: fossa-contrib/fossa-action@v1 with: fossa-api-key: ${{ env.FOSSA_API_KEY }} - From 940d04107c36c85d984bc894081286702dd493f2 Mon Sep 17 00:00:00 2001 From: Mauricio Poppe Date: Sat, 10 Oct 2026 17:47:52 -0400 Subject: [PATCH 3/3] ci: skip install scripts in build --- .github/workflows/build-and-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index aa86622..b5ea96e 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -26,7 +26,7 @@ jobs: cache: npm - name: Install dependencies - run: npm ci + run: npm ci --ignore-scripts - name: Build run: npm run build