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:
Joshua Chen 2021-12-08 09:23:47 +08:00 committed by GitHub
parent b4ec7ec011
commit d5d10f5656
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 44 additions and 34 deletions

View file

@ -1,6 +1,6 @@
name: 🐛 Bug Report
description: Submit a bug report to help us improve
labels: [bug, needs triage]
labels: [bug, 'status: needs triage']
body:
- type: markdown
attributes:

View file

@ -1,6 +1,6 @@
name: 📚 Documentation
description: Report an issue related to documentation
labels: [documentation, needs triage]
labels: [documentation, 'status: needs triage']
body:
- type: markdown
attributes:

View file

@ -1,6 +1,6 @@
name: 💅 Feature design / RFC
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:
- type: markdown
attributes:

View file

@ -1,6 +1,6 @@
name: 💥 Proposal
description: Propose a non-trivial change to Docusaurus
labels: [proposal, needs triage]
labels: [proposal, 'status: needs triage']
body:
- type: markdown
attributes:

40
.github/workflows/tests-windows.yml vendored Normal file
View 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

View file

@ -28,33 +28,3 @@ jobs:
run: yarn test
- name: TypeCheck website
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