xiaoju-survey/.github/workflows/web-lint.yml
2024-05-17 11:19:39 +08:00

35 lines
554 B
YAML

# Lint
name: Web Lint
on:
pull_request:
branches:
- feature/workflow
- develop
- main
- releases/**
- feature/**
paths:
- web/**
workflow_dispatch:
jobs:
build:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: cd web && npm install
- name: Lint
run: cd web && npm run lint