From fbbbbc5aa163a1932ba7cc1fb42962e55eb4a98e Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Wed, 11 Sep 2024 11:57:20 +0100 Subject: [PATCH] feat: add `icon` test suite --- .github/workflows/ecosystem-ci-from-pr.yml | 2 ++ .github/workflows/ecosystem-ci-selected.yml | 1 + .github/workflows/ecosystem-ci.yml | 1 + tests/icon.ts | 11 +++++++++++ 4 files changed, 15 insertions(+) create mode 100644 tests/icon.ts diff --git a/.github/workflows/ecosystem-ci-from-pr.yml b/.github/workflows/ecosystem-ci-from-pr.yml index cac68a0e..bda9183e 100644 --- a/.github/workflows/ecosystem-ci-from-pr.yml +++ b/.github/workflows/ecosystem-ci-from-pr.yml @@ -58,6 +58,7 @@ on: - devtools - fonts - scripts + - icon - cli - test-utils - module-builder @@ -154,6 +155,7 @@ jobs: - devtools - fonts - scripts + - icon - cli - test-utils - module-builder diff --git a/.github/workflows/ecosystem-ci-selected.yml b/.github/workflows/ecosystem-ci-selected.yml index 6ca8dccf..73c2a8eb 100644 --- a/.github/workflows/ecosystem-ci-selected.yml +++ b/.github/workflows/ecosystem-ci-selected.yml @@ -63,6 +63,7 @@ on: - devtools - fonts - scripts + - icon - cli - test-utils - module-builder diff --git a/.github/workflows/ecosystem-ci.yml b/.github/workflows/ecosystem-ci.yml index ac16f957..c47a2744 100644 --- a/.github/workflows/ecosystem-ci.yml +++ b/.github/workflows/ecosystem-ci.yml @@ -69,6 +69,7 @@ jobs: - devtools - fonts - scripts + - icon - cli - test-utils - module-builder diff --git a/tests/icon.ts b/tests/icon.ts new file mode 100644 index 00000000..b97e2ebb --- /dev/null +++ b/tests/icon.ts @@ -0,0 +1,11 @@ +import { runInRepo } from '../utils.ts' +import type { RunOptions } from '../types.js' + +export async function test(options: RunOptions) { + await runInRepo({ + ...options, + repo: 'nuxt/icon', + build: ['dev:prepare', 'build'], + test: ['typecheck', 'test'], + }) +}