Add Docusaurus markdown flavor support #16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| check-format: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install nightly toolchain with rustfmt | |
| run: rustup toolchain install nightly --component rustfmt | |
| - name: Check formatting | |
| run: make check-format | |
| check: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| toolchain: [stable, beta] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install GNU sed (macOS) | |
| if: runner.os == 'macOS' | |
| run: brew install gnu-sed | |
| - uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: ${{ matrix.toolchain }} | |
| components: clippy | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Check compilation | |
| run: make check | |
| - name: Lint | |
| run: make lint | |
| - name: Test | |
| run: make test | |
| check-trailing-whitespace: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Check trailing whitespace | |
| run: make check-trailing-whitespace | |
| check-format-md: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 'lts/*' | |
| - name: Check markdown formatting | |
| run: make check-format-md | |
| generate-spec: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install GNU sed (macOS) | |
| if: runner.os == 'macOS' | |
| run: brew install gnu-sed | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Generate specification | |
| run: make generate-spec |