mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
ci: move bundle skipping logic to workflow (#21448)
This commit is contained in:
parent
857511f448
commit
c6a7527e51
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
@ -227,6 +227,7 @@ jobs:
|
||||
TEST_ENV: ${{ matrix.env }}
|
||||
TEST_BUILDER: ${{ matrix.builder }}
|
||||
TEST_PAYLOAD: ${{ matrix.payload }}
|
||||
SKIP_BUNDLE_SIZE: ${{ github.event_name != 'push' || matrix.env == 'dev' || matrix.builder == 'webpack' || matrix.payload == 'js' || runner.os == 'Windows' }}
|
||||
|
||||
build-release:
|
||||
permissions:
|
||||
|
@ -4,17 +4,8 @@ import { afterAll, beforeAll, describe, expect, it } from 'vitest'
|
||||
import { execaCommand } from 'execa'
|
||||
import { globby } from 'globby'
|
||||
import { join } from 'pathe'
|
||||
import { isWindows } from 'std-env'
|
||||
import { isRenderingJson } from './utils'
|
||||
|
||||
// We only want to run this test for:
|
||||
// - ubuntu
|
||||
// - vite
|
||||
// - in our own CI
|
||||
// - using JS (default) payload rendering
|
||||
// - production build
|
||||
|
||||
describe.skipIf(isWindows || process.env.TEST_BUILDER === 'webpack' || process.env.ECOSYSTEM_CI || !isRenderingJson || process.env.TEST_ENV === 'dev')('minimal nuxt application', () => {
|
||||
describe.skipIf(process.env.SKIP_BUNDLE_SIZE === 'true' || process.env.ECOSYSTEM_CI)('minimal nuxt application', () => {
|
||||
const rootDir = fileURLToPath(new URL('./fixtures/minimal', import.meta.url))
|
||||
const publicDir = join(rootDir, '.output/public')
|
||||
const serverDir = join(rootDir, '.output/server')
|
||||
|
Loading…
Reference in New Issue
Block a user