Skip to content

Commit

Permalink
ci: add Docusaurus e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
merceyz committed Jan 3, 2022
1 parent 0e04724 commit 171dfa2
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/e2e-docusaurus-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
on:
schedule:
- cron: '0 */4 * * *'
push:
branches:
- master
pull_request:
paths:
- .github/workflows/e2e-docusaurus-workflow.yml
- scripts/e2e-setup-ci.sh

name: 'E2E Docusaurus'
jobs:
chore:
name: 'Validating Docusaurus'
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@master

- name: 'Install Node'
uses: actions/setup-node@master
with:
node-version: 14.x

- name: 'Build the standard bundle'
run: |
node ./scripts/run-yarn.js build:cli
- name: 'Running the integration test'
run: |
source scripts/e2e-setup-ci.sh
yarn dlx create-docusaurus@latest my-website classic && cd my-website
yarn build
- name: 'Running the TypeScript integration test'
run: |
source scripts/e2e-setup-ci.sh
yarn dlx create-docusaurus@latest my-website-ts classic --typescript && cd my-website-ts
yarn build
if: |
always()
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ On top of our classic integration tests, we also run Yarn every day against the
</td><td valign="top">

[![](https://github.com/yarnpkg/berry/workflows/E2E%20ESBuild/badge.svg?event=schedule)](https://github.com/yarnpkg/berry/blob/master/.github/workflows/e2e-esbuild-workflow.yml)<br/>
[![](https://github.com/yarnpkg/berry/workflows/E2E%20Docusaurus/badge.svg?event=schedule)](https://github.com/yarnpkg/berry/blob/master/.github/workflows/e2e-docusaurus-workflow.yml)<br/>
[![](https://github.com/yarnpkg/berry/workflows/E2E%20ESLint/badge.svg?event=schedule)](https://github.com/yarnpkg/berry/blob/master/.github/workflows/e2e-eslint-workflow.yml)<br/>
[![](https://github.com/yarnpkg/berry/workflows/E2E%20FSEvents/badge.svg?event=schedule)](https://github.com/yarnpkg/berry/blob/master/.github/workflows/e2e-fsevents-workflow.yml)<br/>
[![](https://github.com/yarnpkg/berry/workflows/E2E%20Husky/badge.svg?event=schedule)](https://github.com/yarnpkg/berry/blob/master/.github/workflows/e2e-husky-workflow.yml)<br/>
Expand Down
1 change: 1 addition & 0 deletions packages/gatsby/content/features/plugnplay.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ Many common frontend tools now support Plug'n'Play natively!
| --- | --- |
| Babel | Starting from `resolve` 1.9 |
| Create-React-App | Starting from 2.0+ |
| Docusaurus | Starting from 2.0.0-beta.10 |
| ESLint | Some compatibility issues w/ shared configs (fixable using [@rushstack/eslint-patch](https://yarnpkg.com/package/@rushstack/eslint-patch)) |
| Gatsby | Supported with version ≥2.15.0, ≥3.7.0 |
| Gulp | Supported with version 4.0+ |
Expand Down

0 comments on commit 171dfa2

Please sign in to comment.