mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-07 05:12:31 +02:00
chore: add prefix to needs triage label; separate Windows test workflow (#6068)
* chore: add status prefix to needs triage label * Separate Windows workflow
This commit is contained in:
parent
b4ec7ec011
commit
d5d10f5656
6 changed files with 44 additions and 34 deletions
2
.github/ISSUE_TEMPLATE/bug.yml
vendored
2
.github/ISSUE_TEMPLATE/bug.yml
vendored
|
@ -1,6 +1,6 @@
|
||||||
name: 🐛 Bug Report
|
name: 🐛 Bug Report
|
||||||
description: Submit a bug report to help us improve
|
description: Submit a bug report to help us improve
|
||||||
labels: [bug, needs triage]
|
labels: [bug, 'status: needs triage']
|
||||||
body:
|
body:
|
||||||
- type: markdown
|
- type: markdown
|
||||||
attributes:
|
attributes:
|
||||||
|
|
2
.github/ISSUE_TEMPLATE/documentation.yml
vendored
2
.github/ISSUE_TEMPLATE/documentation.yml
vendored
|
@ -1,6 +1,6 @@
|
||||||
name: 📚 Documentation
|
name: 📚 Documentation
|
||||||
description: Report an issue related to documentation
|
description: Report an issue related to documentation
|
||||||
labels: [documentation, needs triage]
|
labels: [documentation, 'status: needs triage']
|
||||||
body:
|
body:
|
||||||
- type: markdown
|
- type: markdown
|
||||||
attributes:
|
attributes:
|
||||||
|
|
2
.github/ISSUE_TEMPLATE/feature.yml
vendored
2
.github/ISSUE_TEMPLATE/feature.yml
vendored
|
@ -1,6 +1,6 @@
|
||||||
name: 💅 Feature design / RFC
|
name: 💅 Feature design / RFC
|
||||||
description: Submit a detailed feature request with a concrete proposal, including an exhaustive API / UI design
|
description: Submit a detailed feature request with a concrete proposal, including an exhaustive API / UI design
|
||||||
labels: [feature, needs triage]
|
labels: [feature, 'status: needs triage']
|
||||||
body:
|
body:
|
||||||
- type: markdown
|
- type: markdown
|
||||||
attributes:
|
attributes:
|
||||||
|
|
2
.github/ISSUE_TEMPLATE/proposal.yml
vendored
2
.github/ISSUE_TEMPLATE/proposal.yml
vendored
|
@ -1,6 +1,6 @@
|
||||||
name: 💥 Proposal
|
name: 💥 Proposal
|
||||||
description: Propose a non-trivial change to Docusaurus
|
description: Propose a non-trivial change to Docusaurus
|
||||||
labels: [proposal, needs triage]
|
labels: [proposal, 'status: needs triage']
|
||||||
body:
|
body:
|
||||||
- type: markdown
|
- type: markdown
|
||||||
attributes:
|
attributes:
|
||||||
|
|
40
.github/workflows/tests-windows.yml
vendored
Normal file
40
.github/workflows/tests-windows.yml
vendored
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
name: Windows Tests
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
paths-ignore:
|
||||||
|
- website/**
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
windows-test:
|
||||||
|
name: Windows Tests
|
||||||
|
timeout-minutes: 30
|
||||||
|
runs-on: windows-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
node: ['14', '16', '17']
|
||||||
|
steps:
|
||||||
|
- name: Support longpaths
|
||||||
|
run: git config --system core.longpaths true
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Use Node.js ${{ matrix.node }}
|
||||||
|
uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version: ${{ matrix.node }}
|
||||||
|
- name: Installation
|
||||||
|
run: yarn || yarn || yarn # 3 attempts to avoid timeout errors...
|
||||||
|
- name: Docusaurus Jest Tests
|
||||||
|
run: yarn 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
|
||||||
|
- name: Docusaurus Build
|
||||||
|
run: yarn build:website --locale en
|
||||||
|
env:
|
||||||
|
CI: true
|
30
.github/workflows/tests.yml
vendored
30
.github/workflows/tests.yml
vendored
|
@ -28,33 +28,3 @@ jobs:
|
||||||
run: yarn test
|
run: yarn test
|
||||||
- name: TypeCheck website
|
- name: TypeCheck website
|
||||||
run: yarn workspace website tsc
|
run: yarn workspace website tsc
|
||||||
windows-test:
|
|
||||||
name: Windows Tests
|
|
||||||
timeout-minutes: 30
|
|
||||||
runs-on: windows-latest
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
node: ['14', '16', '17']
|
|
||||||
steps:
|
|
||||||
- name: Support longpaths
|
|
||||||
run: git config --system core.longpaths true
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: Use Node.js ${{ matrix.node }}
|
|
||||||
uses: actions/setup-node@v2
|
|
||||||
with:
|
|
||||||
node-version: ${{ matrix.node }}
|
|
||||||
- name: Installation
|
|
||||||
run: yarn || yarn || yarn # 3 attempts to avoid timeout errors...
|
|
||||||
- name: Docusaurus Jest Tests
|
|
||||||
run: yarn 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
|
|
||||||
- name: Docusaurus Build
|
|
||||||
run: yarn build:website --locale en
|
|
||||||
env:
|
|
||||||
CI: true
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue