Skip to content

Commit

Permalink
ci: add no-legacy pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
wattanx committed Mar 24, 2024
1 parent f7b3aee commit 86afd71
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ jobs:
compatibility: ['compatibility', 'no-compatibility']
resolve: ['resolve', 'no-resolve']
typescript: ['isTSX', 'esbuild']
vite-legacy: ['legacy', 'no-legacy']
exclude:
- transpile: 'no-transpile'
builder: 'vite'
Expand All @@ -92,6 +93,8 @@ jobs:
builder: 'vite'
- compatibility: 'no-compatibility'
env: 'dev'
- builder: 'webpack'
vite-legacy: 'legacy'

steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
Expand Down Expand Up @@ -135,6 +138,7 @@ jobs:
env:
TEST_ENV: ${{ matrix.env }}
TEST_BUILDER: ${{ matrix.builder }}
TEST_VITE_LEGACY: ${{ matrix.vite-legacy || 'legacy' }}
TEST_TRANSPILE: ${{ matrix.transpile || 'transpile' }}
TEST_COMPATIBILITY: ${{ matrix.compatibility || 'compatibility' }}
TEST_RESOLVE: ${{ matrix.resolve || 'resolve' }}
Expand Down
2 changes: 1 addition & 1 deletion playground/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { defineNuxtConfig } from '@nuxt/bridge'
global.__NUXT_PREPATHS__ = (global.__NUXT_PREPATHS__ || []).concat(__dirname)

const bridgeConfig = {
vite: process.env.TEST_BUILDER !== 'webpack',
vite: process.env.TEST_BUILDER !== 'webpack' ? { legacy: process.env.TEST_VITE_LEGACY !== 'no-legacy' } : false,
transpile: process.env.TEST_TRANSPILE !== 'no-transpile',
compatibility: process.env.TEST_COMPATIBILITY !== 'no-compatibility',
resolve: process.env.TEST_RESOLVE !== 'no-resolve',
Expand Down

0 comments on commit 86afd71

Please sign in to comment.