From 35698083610ce24205befaf92605c4e3248f4e41 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Sat, 2 Dec 2023 20:56:04 +0000 Subject: [PATCH 1/5] feat: add `@nuxt/test-utils` ecosystem test --- .github/workflows/ecosystem-ci-from-pr.yml | 2 ++ .github/workflows/ecosystem-ci-selected.yml | 1 + .github/workflows/ecosystem-ci.yml | 1 + tests/nuxt-test-utils.ts | 15 +++++++++++++++ 4 files changed, 19 insertions(+) create mode 100644 tests/nuxt-test-utils.ts diff --git a/.github/workflows/ecosystem-ci-from-pr.yml b/.github/workflows/ecosystem-ci-from-pr.yml index c9c21da..d324d7c 100644 --- a/.github/workflows/ecosystem-ci-from-pr.yml +++ b/.github/workflows/ecosystem-ci-from-pr.yml @@ -30,6 +30,7 @@ on: options: - "-" - nuxt + - nuxt-text-utils - vite - vitest-sonar-reporter - vitest-github-actions-reporter @@ -96,6 +97,7 @@ jobs: matrix: suite: - nuxt + - nuxt-text-utils - vite - vitest-sonar-reporter - vitest-github-actions-reporter diff --git a/.github/workflows/ecosystem-ci-selected.yml b/.github/workflows/ecosystem-ci-selected.yml index 842c038..bff2dab 100644 --- a/.github/workflows/ecosystem-ci-selected.yml +++ b/.github/workflows/ecosystem-ci-selected.yml @@ -35,6 +35,7 @@ on: type: choice options: - nuxt + - nuxt-text-utils - vite - vitest-sonar-reporter - vitest-github-actions-reporter diff --git a/.github/workflows/ecosystem-ci.yml b/.github/workflows/ecosystem-ci.yml index dd49d8e..0b2128e 100644 --- a/.github/workflows/ecosystem-ci.yml +++ b/.github/workflows/ecosystem-ci.yml @@ -41,6 +41,7 @@ jobs: matrix: suite: - nuxt + - nuxt-text-utils - vite - vitest-sonar-reporter - vitest-github-actions-reporter diff --git a/tests/nuxt-test-utils.ts b/tests/nuxt-test-utils.ts new file mode 100644 index 0000000..820dbef --- /dev/null +++ b/tests/nuxt-test-utils.ts @@ -0,0 +1,15 @@ +import { runInRepo } from '../utils' +import { RunOptions } from '../types' + +export async function test(options: RunOptions) { + await runInRepo({ + ...options, + repo: 'nuxt/test-utils', + overrides: { + '@vitejs/plugin-vue': true, + }, + build: ['dev:prepare', 'prepack'], + test: ['test:unit', 'test:examples'], + beforeTest: ['pnpm playwright-core install chromium'], + }) +} From 5d49f19596de1cd3cd81e41046d15faf2c45f848 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ari=20Perkki=C3=B6?= Date: Sun, 3 Dec 2023 10:53:16 +0200 Subject: [PATCH 2/5] ci: Fix typo --- .github/workflows/ecosystem-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ecosystem-ci.yml b/.github/workflows/ecosystem-ci.yml index 0b2128e..61af066 100644 --- a/.github/workflows/ecosystem-ci.yml +++ b/.github/workflows/ecosystem-ci.yml @@ -41,7 +41,7 @@ jobs: matrix: suite: - nuxt - - nuxt-text-utils + - nuxt-test-utils - vite - vitest-sonar-reporter - vitest-github-actions-reporter From d6d83519a5b8c51560d011c09905bf277d5df32c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ari=20Perkki=C3=B6?= Date: Sun, 3 Dec 2023 10:53:26 +0200 Subject: [PATCH 3/5] ci: Fix typo --- .github/workflows/ecosystem-ci-selected.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ecosystem-ci-selected.yml b/.github/workflows/ecosystem-ci-selected.yml index bff2dab..41de36e 100644 --- a/.github/workflows/ecosystem-ci-selected.yml +++ b/.github/workflows/ecosystem-ci-selected.yml @@ -35,7 +35,7 @@ on: type: choice options: - nuxt - - nuxt-text-utils + - nuxt-test-utils - vite - vitest-sonar-reporter - vitest-github-actions-reporter From 30f2a4736cbe023b290bca457bcb5eae3ed972ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ari=20Perkki=C3=B6?= Date: Sun, 3 Dec 2023 10:53:32 +0200 Subject: [PATCH 4/5] ci: Fix typo --- .github/workflows/ecosystem-ci-from-pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ecosystem-ci-from-pr.yml b/.github/workflows/ecosystem-ci-from-pr.yml index d324d7c..9a65b08 100644 --- a/.github/workflows/ecosystem-ci-from-pr.yml +++ b/.github/workflows/ecosystem-ci-from-pr.yml @@ -97,7 +97,7 @@ jobs: matrix: suite: - nuxt - - nuxt-text-utils + - nuxt-test-utils - vite - vitest-sonar-reporter - vitest-github-actions-reporter From 2dc8bf1ab697095e68f44cef6fce1983de64d636 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ari=20Perkki=C3=B6?= Date: Sun, 3 Dec 2023 10:53:38 +0200 Subject: [PATCH 5/5] ci: Fix typo --- .github/workflows/ecosystem-ci-from-pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ecosystem-ci-from-pr.yml b/.github/workflows/ecosystem-ci-from-pr.yml index 9a65b08..87de9ad 100644 --- a/.github/workflows/ecosystem-ci-from-pr.yml +++ b/.github/workflows/ecosystem-ci-from-pr.yml @@ -30,7 +30,7 @@ on: options: - "-" - nuxt - - nuxt-text-utils + - nuxt-test-utils - vite - vitest-sonar-reporter - vitest-github-actions-reporter