mirror of
https://github.com/yibaiba/hideck.git
synced 2026-12-06 08:02:21 +00:00
41 lines
784 B
YAML
41 lines
784 B
YAML
name: Web CI
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- 'web/**'
|
|
- '.github/workflows/web-ci.yml'
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- 'web/**'
|
|
- '.github/workflows/web-ci.yml'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
web-check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20'
|
|
cache: 'npm'
|
|
cache-dependency-path: web/package-lock.json
|
|
|
|
- name: Install dependencies
|
|
run: npm ci --prefix web
|
|
|
|
- name: Lint
|
|
run: npm run lint --prefix web
|
|
|
|
- name: Typecheck
|
|
run: npm run typecheck --prefix web
|
|
|
|
- name: Build
|
|
run: npm run build --prefix web
|