/
githubmirror
/
docusaurus
Обзор
Документация
Войти
/
githubmirror
/
docusaurus
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
.github/workflows/tests-windows.yml
77 строк
3 KB
dependabot[bot]
chore(deps): bump actions/setup-node from 6.4.0 to 7.0.0 (#12293)
23 июл 2026, 12:28
Не верифицирован
23 июл 2026, 12:28
3f96ebc
Код
Авторство
О чём код?
name: Windows Tests on: pull_request: branches: - main - docusaurus-v** paths: - package.json - pnpm-lock.yaml - vitest.config.ts - test/** - packages/** - tsconfig.*.json - .github/workflows/tests-windows.yml concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} cancel-in-progress: true permissions: contents: read jobs: windows-test: name: Windows Tests timeout-minutes: 30 runs-on: windows-latest strategy: matrix: node: ['24.14', '26'] steps: - name: Support longpaths run: git config --system core.longpaths true - name: Checkout uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 - name: Install pnpm uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9 - name: Use Node.js ${{ matrix.node }} uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 with: node-version: ${{ matrix.node }} cache: pnpm - name: Installation run: pnpm install --frozen-lockfile || pnpm install --frozen-lockfile || pnpm install --frozen-lockfile - name: Docusaurus Tests run: pnpm test - name: Create a deep path # https://github.com/facebook/docusaurus/pull/4899 # https://github.com/facebook/docusaurus/issues/5793 run: | mkdir -p "website/_dogfooding/_pages tests/deep-file-path-test/bar/foo/bar/foo/bar/foo/bar/foo/bar/foo/bar/foo/bar/foo/bar/foo/bar/foo/bar/foo/bar/foo/bar/foo/bar/foo/bar/foo/bar/foo/bar/foo/bar/foo/bar/foo/bar/foo/bar/foo/bar/foo/bar/foo/bar/foo/bar/foo/bar/foo/bar/foo/bar/foo/bar/foo/bar/foo/bar/foo/bar/foo/bar" cd "$_" echo "# hello" > test-file.md # Lightweight version of tests-swizzle.yml workflow, but for Windows - name: Swizzle Wrap TS run: pnpm --filter website test:swizzle:wrap:ts - name: Docusaurus Build run: pnpm build:website:fast env: DOCUSAURUS_PERF_LOGGER: 'true' - name: TypeCheck website # see https://github.com/facebook/docusaurus/pull/10486 run: pnpm --filter website typecheck - name: TypeCheck website - min version - v6.0 run: | pnpm add typescript@6.0 --save-exact -D -w --ignore-scripts pnpm --filter website typecheck - name: TypeCheck website - max version - Latest # For latest TS there are often lib check errors, so we disable it # Details: https://github.com/facebook/docusaurus/pull/10486 run: | pnpm add typescript@latest --save-exact -D -w --ignore-scripts pnpm --filter website typecheck --project tsconfig.skipLibCheck.json