customized syntax highlighter module #466
This file contains 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 | |
- pull_request | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup node.js | |
uses: actions/setup-node@v4 | |
- name: Install | |
run: | | |
npm install | |
- name: Build | |
run: | | |
npm run build | |
- name: Lint | |
run: | | |
npm run lint | |
- name: Prettier | |
run: | | |
npm run prettier | |
website: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup node.js | |
uses: actions/setup-node@v4 | |
- name: Install | |
run: | | |
npm install | |
- name: Build package | |
run: | | |
npm run build | |
- name: Build documentation | |
run: | | |
npm run docs | |
- name: Build demo application | |
run: | | |
cd demo | |
npm install | |
npm install .. --install-links | |
npm run build | |
cd .. | |
cp -R docs demo/dist | |
unit-tests: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
node-version: [18.x, 20.x, 22.x] | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install | |
run: | | |
npm install | |
- name: Build | |
run: | | |
npm run build | |
- name: Tests | |
run: | | |
npm run test |