feat(ui/sidebar): add page search by keywords in sidebar (#603) #289
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: Test Frontend | |
on: | |
push: | |
branches: ["*", "!release/*", "!nightly"] | |
paths: ["ui/**"] | |
tags-ignore: ["v*"] | |
pull_request: | |
paths: ["ui/**"] | |
branches: ["*", "!release/*", "!nightly"] | |
jobs: | |
test_ui: | |
strategy: | |
matrix: | |
node: [18, 20] | |
os: [ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- if: matrix.os == 'windows-latest' | |
name: Set git to use LF (for Windows environment) | |
run: | | |
git config --global core.autocrlf false | |
git config --global core.eol lf | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: 9.9.0 | |
- name: Use Node.js ${{ matrix.node }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: pnpm | |
- name: Install Dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Package Build Test | |
run: pnpm build:all | |
- name: Unit test | |
run: pnpm test | |
- name: Lint | |
run: pnpm eslint ui && pnpm prettier --check ui | |
# https://github.com/arethetypeswrong/arethetypeswrong.github.io | |
- name: "arethetypeswrong test" | |
if: runner.os == 'ubuntu-latest' | |
run: pnpm -F artalk test:attw || true |