ci: add webui build test

This commit is contained in:
Rewrite0
2024-05-31 16:13:26 +08:00
parent b0eef9e8d2
commit 8e05b5ed19

View File

@@ -28,6 +28,43 @@ jobs:
mkdir -p config
pytest
webui-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: cd webui && pnpm install
- name: build test
run: |
cd webui && pnpm vue-tsc --noEmit
version-info:
runs-on: ubuntu-latest
steps: