Skip to content

Commit

Permalink
feat: add @nuxt/ui test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Oct 18, 2023
1 parent 9730cf7 commit 1c0c33b
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ecosystem-ci-from-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ on:
- "-"
- starter
- content
- ui
- image
- pinia
- examples
Expand Down Expand Up @@ -93,6 +94,9 @@ jobs:
--branch ${{ inputs.branchName }}
--repo ${{ inputs.repo }}
${{ inputs.suite }}
env:
NUXT_UI_PRO_TOKEN: ${{ secrets.NUXT_UI_PRO_TOKEN }}
NUXT_UI_PRO_LICENSE: ${{ secrets.NUXT_UI_PRO_TOKEN }}
execute-all:
timeout-minutes: 30
Expand All @@ -104,6 +108,7 @@ jobs:
suite:
- starter
- content
- ui
- image
- pinia
- examples
Expand Down Expand Up @@ -133,6 +138,9 @@ jobs:
--branch ${{ inputs.branchName }}
--repo ${{ inputs.repo }}
${{ matrix.suite }}
env:
NUXT_UI_PRO_TOKEN: ${{ secrets.NUXT_UI_PRO_TOKEN }}
NUXT_UI_PRO_LICENSE: ${{ secrets.NUXT_UI_PRO_TOKEN }}
update-comment:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ecosystem-ci-selected.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ on:
options:
- starter
- content
- ui
- image
- pinia
- examples
Expand Down Expand Up @@ -69,6 +70,9 @@ jobs:
--repo ${{ inputs.repo }}
${{ inputs.suite }}
id: ecosystem-ci-run
env:
NUXT_UI_PRO_TOKEN: ${{ secrets.NUXT_UI_PRO_TOKEN }}
NUXT_UI_PRO_LICENSE: ${{ secrets.NUXT_UI_PRO_TOKEN }}
- if: always()
run: pnpm tsx discord-webhook.ts
env:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/ecosystem-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
suite:
- starter
- content
- ui
- image
- pinia
- examples
Expand Down Expand Up @@ -72,6 +73,10 @@ jobs:
--repo ${{ inputs.repo || github.event.client_payload.repo || 'nuxt/nuxt' }}
${{ matrix.suite }}
id: ecosystem-ci-run
env:
NUXT_UI_PRO_TOKEN: ${{ secrets.NUXT_UI_PRO_TOKEN }}
NUXT_UI_PRO_LICENSE: ${{ secrets.NUXT_UI_PRO_TOKEN }}
- if: always()
run: pnpm tsx discord-webhook.ts
env:
Expand Down
12 changes: 12 additions & 0 deletions tests/ui.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { runInRepo } from '../utils'
import { RunOptions } from '../types'

export async function test(options: RunOptions) {
await runInRepo({
...options,
branch: 'dev',
repo: 'nuxt/ui',
build: ['dev:prepare'],
test: ['typecheck', 'build', 'build:docs'],
})
}

0 comments on commit 1c0c33b

Please sign in to comment.