2024-05-17 03:04:17 +00:00
|
|
|
# Lint
|
|
|
|
name: Web Lint
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- feature/workflow
|
|
|
|
- develop
|
|
|
|
- main
|
|
|
|
- releases/**
|
|
|
|
- feature/**
|
|
|
|
paths:
|
2024-05-17 03:06:07 +00:00
|
|
|
- web/**
|
2024-05-17 03:04:17 +00:00
|
|
|
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
|
2024-05-17 03:07:45 +00:00
|
|
|
run: cd web && npm run lint
|