xiaoju-survey/.github/workflows/server-lint.yml

43 lines
688 B
YAML
Raw Permalink Normal View History

# Lint
name: Server Lint
on:
2024-05-21 11:42:43 +00:00
push:
branches:
- main
- releases/**
paths:
- server/**
pull_request:
branches:
- develop
- main
- releases/**
- feature/**
paths:
- server/**
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 server && npm install
- name: Lint
run: cd server && npm run lint
2024-05-21 11:38:18 +00:00
- name: Format
run: cd server && npm run format