From b513caea7e32c57cff1d1684872c08d067f2ec0b Mon Sep 17 00:00:00 2001 From: nerdyman Date: Sat, 19 Oct 2024 12:00:57 +0100 Subject: [PATCH] ci: run build before tests --- .github/workflows/main.yml | 3 +++ package.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index aa79a7d..94dbb58 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -28,6 +28,9 @@ jobs: - name: Install dependencies run: npm run bootstrap + - name: Build library + run: pnpm --filter ./lib build + - name: Lint run: pnpm lint --reporter=github diff --git a/package.json b/package.json index 4fb4c37..6b96fd9 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "bootstrap": "corepack enable && pnpm i --frozen-lockfile && pnpm --filter='*' run --parallel setup", "clean": "rm -rf ./example/tests/{coverage-reports,results} ./lib/dist ./{.,lib,example}.*.log ./{.,lib,example}/node_modules", "lint": "biome check", - "test": "pnpm run --filter=example test" + "test": "pnpm run --filter ./example test" }, "resolutions": { "react-image-turntable": "workspace:*"