From 2b0132a565a6b4caa26eebf86aa344459838ec64 Mon Sep 17 00:00:00 2001 From: Filip Sobol Date: Sun, 13 Oct 2024 15:07:00 +0200 Subject: [PATCH] Run tests on CI --- .github/workflows/main.yml | 5 ++++- package.json | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b3ab6a4..96db6e4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,6 +1,6 @@ name: Build packages -on: [push, pull_request] +on: [ push, pull_request ] jobs: build: @@ -25,6 +25,9 @@ jobs: - name: Install dependencies run: pnpm install --frozen-lockfile + - name: Run all tests + run: pnpm run test + - name: Build all packages run: pnpm run build diff --git a/package.json b/package.json index 0b40977..541c280 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "pnpm": ">=9.7" }, "scripts": { + "test": "pnpm -r --stream run test", "build": "pnpm -r --stream run build", "restore": "pnpm run restore:sonda && pnpm run restore:unplugin-sourcemaps", "restore:sonda": "cd packages/sonda && clean-package restore",