Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/scalvert/docusaurus-version-compatibility
A Docusaurus version compatibility tester
https://github.com/scalvert/docusaurus-version-compatibility
Last synced: 20 days ago
JSON representation
A Docusaurus version compatibility tester
- Host: GitHub
- URL: https://github.com/scalvert/docusaurus-version-compatibility
- Owner: scalvert
- License: mit
- Created: 2023-04-17T16:14:29.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-03T09:14:18.000Z (about 1 year ago)
- Last Synced: 2024-10-19T17:57:33.196Z (2 months ago)
- Language: TypeScript
- Size: 951 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# GitHub Action to Test Compatibility with Multiple Docusaurus Versions
[![Build & Test](https://github.com/scalvert/docusaurus-version-compatibility/actions/workflows/test.yml/badge.svg)](https://github.com/scalvert/docusaurus-version-compatibility/actions/workflows/test.yml)
## Description
A Docusaurus version compatibility tester
Docusaurus Version Tester is a useful GitHub Action for Docusaurus plugin or theme developers, as it streamlines compatibility testing across multiple Docusaurus versions. By automating the testing process against each published version of Docusaurus, it ensures that plugins and themes maintain compatibility across those versions.
## Inputs
| parameter | description | required | default |
| --- | --- | --- | --- |
| version | The version of Docusaurus to test | `false` | |
| setup-versions | Sets up the version compatibility test with the associated versions | `false` | |## Outputs
| parameter | description |
| --- | --- |
| docusaurus-versions | The versions of Docusaurus to test |## Usage
See [action.yml](action.yml)
Basic usage with yarn:
```yaml
name: Docusarurus Version Compatibility Teston:
schedule:
- cron: '0 0 * * *'
workflow_dispatch: {}jobs:
compatibility-setup:
runs-on: ubuntu-latest
outputs:
docusaurus-versions: ${{ steps.set-matrix.outputs.docusaurus-versions }}
steps:
- name: Version compatibility test setup
id: set-matrix
uses: scalvert/docusaurus-version-compatibility@main
with:
setup-versions: truecompatibility-test:
runs-on: ubuntu-latest
name: Docusaurus @${{ matrix.docusaurus-version }}needs: compatibility-setup
strategy:
matrix:
docusaurus-version: ${{ fromJson(needs.compatibility-setup.outputs.docusaurus-versions) }}steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: 16
- uses: scalvert/docusaurus-version-compatibility@main
with:
version: ${{ matrix.docusaurus-version }}
- run: yarn --no-immutable
- run: yarn test```
Basic usage with npm:
```yaml
name: Docusarurus Version Compatibility Teston:
schedule:
- cron: '0 0 * * *'
workflow_dispatch: {}jobs:
compatibility-setup:
runs-on: ubuntu-latest
outputs:
docusaurus-versions: ${{ steps.set-matrix.outputs.docusaurus-versions }}
steps:
- name: Version compatibility test setup
id: set-matrix
uses: scalvert/docusaurus-version-compatibility@main
with:
setup-versions: truecompatibility-test:
runs-on: ubuntu-latest
name: Docusaurus @${{ matrix.docusaurus-version }}needs: compatibility-setup
strategy:
matrix:
docusaurus-version: ${{ fromJson(needs.compatibility-setup.outputs.docusaurus-versions) }}steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: 16
- uses: scalvert/docusaurus-version-compatibility@main
with:
version: ${{ matrix.docusaurus-version }}
- run: npm install --no-package-lock
- run: npm test
```